How to edit the style of a heading in Treeview (Python ttk)
问题 I am trying to use ttk.Treeview to make a sortable table (as per Does tkinter have a table widget? and https://www.daniweb.com/software-development/python/threads/350266/creating-table-in-python). Getting it to work is easy, but I'm having some issues with the styling. The default style for the Treeview heading is black text on a white background, which is fine. However, in my code I'm using: ttk.Style().configure(".", font=('Helvetica', 8), foreground="white") to format my GUI. This