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 terry.reedy
Recipients markroseman, ned.deily, rhettinger, ronaldoussoren, taleinat, terry.reedy
Date 2021-05-27.01:56:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622080561.97.0.61409319906.issue44243@roundup.psfhosted.org>
In-reply-to
Content
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 and holds mouse, and then blue background.  Default black on white works OK.

This may be new since several years ago, when 2 of us worked on turtle demo, which has 3 such buttons.  They all now misbehave (reported by Raymond).  If someone tested on Mac, it must have worked then.

I retried with the b= line replaced with

s = ttk.Style()
s.configure('Td.TButton', foreground='white', background='red')
b = ttk.Button(r, text='START', style='Td.TButton')

with the same result.  (Mark, did I get this right?)
History
Date User Action Args
2021-05-27 01:56:02terry.reedysetrecipients: + terry.reedy, rhettinger, ronaldoussoren, taleinat, ned.deily, markroseman
2021-05-27 01:56:01terry.reedysetmessageid: <1622080561.97.0.61409319906.issue44243@roundup.psfhosted.org>
2021-05-27 01:56:01terry.reedylinkissue44243 messages
2021-05-27 01:56:01terry.reedycreate