[issue33373] Tkinter ttk Label background ignored on MacOS

Terry J. Reedy report at bugs.python.org
Fri Apr 27 17:47:09 EDT 2018


Terry J. Reedy <tjreedy at udel.edu> added the comment:

ttk Label backgrounds work fine on Windows and, possibly, Linux (Serhiy?), and even, possibly with tcl/tk 8.6 on macOS (Ned?).  tk 8.6 for macOS has gotten several bug fixes.  C.D., please download and try out the python.org 3.7.0b3 macOS installer.  It included and will install for Python's use the current tcl/tk 8.6.x bugfix release.

import tkinter as tk
from tkinter import ttk
r = tk.Tk()
l = ttk.Label(r, text='colored label', background='red')
l.pack()
r.mainloop()  # if not in IDLE

We obviously should not remove something that works as intended on some systems.

----------
components: +macOS
nosy: +ned.deily, ronaldoussoren, serhiy.storchaka, terry.reedy
title: ttk modules Label class does not respect background config option -> Tkinter ttk Label background ignored on MacOS
versions: +Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33373>
_______________________________________


More information about the Python-bugs-list mailing list