[issue37546] colors in ttk treeview tags are ignored
dave
report at bugs.python.org
Wed Jul 10 08:05:11 EDT 2019
New submission from dave <dave9000 at cheapnet.it>:
The following example code fails in Python 3.7.3 64 bit (both lines are displayed in black).
It works correctly in 3.7.2 and earlier.
import tkinter as tk
import tkinter.ttk as ttk
root = tk.Tk()
ttk.Label(root, text='This is a RED label', foreground='red').pack()
tree = ttk.Treeview(root)
tree.tag_configure('RED_TAG', foreground='red', font=('arial', 12))
tree.insert('', tk.END, text='Black line')
tree.insert('', tk.END, text='Red line', tag='RED_TAG')
tree.pack()
root.mainloop()
----------
components: Tkinter
messages: 347618
nosy: dave9000
priority: normal
severity: normal
status: open
title: colors in ttk treeview tags are ignored
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37546>
_______________________________________
More information about the Python-bugs-list
mailing list