For some reason I don’t know, it seems like the created theme does not inherit from parent
. Therefore your theme is missing among other settings the dynamic styling of the treeview’s row.
To avoid that, it is simpler in my opinion to just modify an existing theme:
style = ttk.Style()
style.theme_use('clam')
style.configure(...)
style.map(...)
CLICK HERE to find out more related problems solutions.