I'm trying to change a selected background and foreground color of a row in a Treeview widget, i searched the question have been asked before, but found no explicit answer for it.
Even though question is clear enough but my code is something like this now and not working at all, it won't even change the normal background (as I found, I have to bind the tags for select and deselect events, but tags are not working and nothing changes):
tree = ttk.Treeview(master)
tree.pack()
tree.tag_configure("hi", background="red")
tree.insert("", "end", text="this is a row", tags=("hi",))
any help will be appreciated.