Message394506
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?) |
|
Date |
User |
Action |
Args |
2021-05-27 01:56:02 | terry.reedy | set | recipients:
+ terry.reedy, rhettinger, ronaldoussoren, taleinat, ned.deily, markroseman |
2021-05-27 01:56:01 | terry.reedy | set | messageid: <1622080561.97.0.61409319906.issue44243@roundup.psfhosted.org> |
2021-05-27 01:56:01 | terry.reedy | link | issue44243 messages |
2021-05-27 01:56:01 | terry.reedy | create | |
|