How to edit the style of a heading in Treeview (Python ttk) How to edit the style of a heading in Treeview (Python ttk) tkinter tkinter

How to edit the style of a heading in Treeview (Python ttk)


this works where I am -

style = ttk.Style()style.configure(".", font=('Helvetica', 8), foreground="white")style.configure("Treeview", foreground='red')style.configure("Treeview.Heading", foreground='green') #<----

http://www.tkdocs.com/tutorial/styles.html


You can alter the font used in the Treeview headers using the default named font 'TkHeadingFont'.

Eg:

font.nametofont('TkHeadingFont').configure(size = 15)