[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> third party stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Mark Roseman
Mark Roseman added the comment: Let it go. Changing the Python docs to a behaviour that isn't guaranteed by the underlying library is a virtual guarantee that a later version of Tk (or even the way the API it uses behaves on another version of macOS) will have some other (unrelated)

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: #44254 is a followup to change turtledemo unpressed button colors to something on white. -- ___ Python tracker ___

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: "The configure and cget subcommands can still manipulate the values, but do not cause any variation to the look of the widget." is wrong. Setting the foreground color *does* change the unpressed foreground color, so that 'white' becomes 'white on white'.

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: It appears that this behavior is the intended behavior of Tk on macOS. Given that tkinter is meant to be a relatively straightforward wrapping of Tcl/Tk, it seems to me that we too should consider this not to be a bug, and resolve this issue as "won't fix".

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: The Tcl/Tk devs have closed the issue I opened on their issue tracker as "not a bug", with the following comment: "Because Tk on the Mac uses API's to draw buttons, some configuration options are set by the OS and not by Tk. This is documented in the button man

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: Thanks for helping with this, E. Paine! Unfortunately, no, adding activebackground='red' doesn't help, even directly in a wish shell. -- ___ Python tracker

[issue44243] tkinter button colors on Mac

2021-05-27 Thread E. Paine
E. Paine added the comment: Does the activebackground option fix this? E.g. r = tk.Tk() b = tk.Button(r, fg="white", bg="red", activebackground="red") b.pack() r.mainloop() -- nosy: +epaine ___ Python tracker

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: I've created an issue about this on the Tcl/Tk issue tracker: https://core.tcl-lang.org/tk/tktview/46274a117823fd65c6d98d38465b43165d0c4680 -- ___ Python tracker

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: Confirmed on macOS. This bugs also affects the underlying Tcl/Tk, confirmed with 8.6.11. To reproduce: $ wish % button .b -text START -bg red -fg white .b % pack .b -- ___ Python tracker

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Tal Einat
Tal Einat added the comment: FWIW this also behaves as expected on Ubuntu 20.04 with both Python 3.8 and 3.10. -- ___ Python tracker ___

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : Mac Mohave, 3.9 with 8.6.8 and 3.10 with 8.6.11 import tkinter as tk r = tk.Tk() b = tk.Button(r, text='START', fg='white', bg='red') # Or '#f00'. b.pack() r.mainloop() On Windows, white on red button, as expected. On Mac, all white until one presses