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.

classification
Title: Clicking "Add to Custom Colors" adds same colour multiple times
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.9
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: pramod17, terry.reedy
Priority: normal Keywords:

Created on 2021-09-23 15:01 by pramod17, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python bug 1.png pramod17, 2021-09-23 15:23 I have highlighted the issue in the file, all of my Custom Colors started to become the selected black color upon clicking the button "Add to custom colors" .
Messages (5)
msg402498 - (view) Author: Pramod (pramod17) * Date: 2021-09-23 15:20
When customising my Python IDLE (in Options>Configure IDLE>Highlights>Choose color for:), if I choose a color from the palette and click on the button "Add to Custom Colors" multiple times, all my existing colors are replaced by a single color one by one, instead I feel it would be better if Python gave a popup saying something like "the selected color already exists in Custom colors".
msg402499 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-09-23 15:38
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.
msg402500 - (view) Author: Pramod (pramod17) * Date: 2021-09-23 15:38
Sorry for adding my file again. Can you please state the reason for
removing the file Mr. Terry J Reedy , was it because I haven't signed the
Contributor Agreement at that time? But now that I have signed it, can I
add the    https://bugs.python.org/file50298/python bug 1.png file again?

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

>
> Change by Terry J. Reedy <tjreedy@udel.edu>:
>
>
> Removed file: https://bugs.python.org/file50297/python bug 1.png
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue45270>
> _______________________________________
>
msg402501 - (view) Author: Pramod (pramod17) * Date: 2021-09-23 15:46
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>
> _______________________________________
>
msg402503 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-09-23 15:57
You added the same file twice.  Once was enough.

To repeat: IDLE has no knowledge of color chooser.  The Custom Colors bar is Windows specific.  There is no such thing on macOS.


PS: when responding by email, please delete the quoted message.  It is redundant and therefore noise when posted on the web page.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89433
2021-09-23 15:57:14terry.reedysetmessages: + msg402503
2021-09-23 15:46:23pramod17setmessages: + msg402501
2021-09-23 15:38:31pramod17setmessages: + msg402500
2021-09-23 15:38:02terry.reedysetstatus: open -> closed
resolution: third party
messages: + msg402499

stage: resolved
2021-09-23 15:27:31terry.reedysetfiles: - python bug 1.png
2021-09-23 15:23:27pramod17setfiles: + python bug 1.png
2021-09-23 15:20:55pramod17setfiles: + python bug 1.png

type: behavior
assignee: terry.reedy
components: + IDLE

versions: + Python 3.9
nosy: + terry.reedy
title: Clicking "Add to Custom C -> Clicking "Add to Custom Colors" adds same colour multiple times
messages: + msg402498
2021-09-23 15:01:31pramod17create