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 guillaumeb
Recipients guillaumeb
Date 2019-03-29.08:31:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553848318.4.0.250762836848.issue36468@roundup.psfhosted.org>
In-reply-to
Content
Hello,
color change with Treeview does not work in Python 3.7.3,
but it works with Python 3.7.2.

Test code:
# -*- coding: utf-8 -*-
import tkinter
from tkinter import ttk
root = tkinter.Tk ()
style = ttk.Style (root)
style.configure ("Treeview", foreground="yellow", background="grey", fieldbackground="green")
tree = ttk.Treeview (root, columns=('Data'))
tree.heading ('#0', text='Item')
tree.heading ('#1', text='Data')
tree.insert ("", "end", text="Item_0", values=100, tags="A")
tree.insert ("", "end", text="Item_1", values=200, tags="B")
tree.insert ("", "end", text="Item_2", values=300, tags="C")
tree.tag_configure ("A", foreground="black") #Py 3.7.3: no effect
tree.tag_configure ("B", foreground="red")
tree.pack ()
root.mainloop ()
History
Date User Action Args
2019-03-29 08:31:58guillaumebsetrecipients: + guillaumeb
2019-03-29 08:31:58guillaumebsetmessageid: <1553848318.4.0.250762836848.issue36468@roundup.psfhosted.org>
2019-03-29 08:31:58guillaumeblinkissue36468 messages
2019-03-29 08:31:58guillaumebcreate