This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pramod17
Recipients pramod17, terry.reedy
Date 2021-09-23.15:46:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAL-6SPYXwBA7v4w45_MFWKv9DzRNoC5=uZiUpKnMKRTWHLLDPg@mail.gmail.com>
In-reply-to <1632411482.42.0.461198215772.issue45270@roundup.psfhosted.org>
Content
I understand that, but is it possible to keep only unique colors in the
Custom Color palette, and when user chooses the exact same color to be in
the Custom Color palette it would return a pop up like "Color already in
Custom Color palette".

It would be better if the color strings which IDLE receives, are checked if
present already in Custom Colors, if not it then passes it to tkinter and
tk.

On Thu, 23 Sept 2021 at 21:08, Terry J. Reedy <report@bugs.python.org>
wrote:

>
> Terry J. Reedy <tjreedy@udel.edu> added the comment:
>
> IDLE has nothing to do with the operation of the color chooser.  IDLE
> calls a tkinter function that calls a tk functions that calls the OS Window
> Manager color chooser.  The choice you make is returned to IDLE as a color
> string that IDLE can later pass to tkinter and tk.  What you see on
> Windows, in your image is the MS Windows 10 color chooser.  The macOS color
> chooser is *completely* different.
>
> The Windows Custom Color bar presumes that you make a small set of
> distinguishable custom colors.  The main use in IDLE would be if you create
> a custom backgound color that you want to use for multiple
> foreground/background pairs.  The use in Windows would be if you have a
> custom palette that you want to use for multiple applications.
>
> ----------
> resolution:  -> third party
> stage:  -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue45270>
> _______________________________________
>
History
Date User Action Args
2021-09-23 15:46:24pramod17setrecipients: + pramod17, terry.reedy
2021-09-23 15:46:23pramod17linkissue45270 messages
2021-09-23 15:46:23pramod17create