I have some code that changes the theme so I can change the field color of a ttk.Combobox, but I don’t want the buttons to use that theme. Is there any way I can do this? Here’s my code:
style = ttk.Style()
style.configure('TButton', background = '#1e1e2e', relief = 'flat')
combostyle = ttk.Style()
combostyle.theme_use('alt')
combostyle.configure('TCombobox', foreground = 'white', fieldbackground = '#1e1e2e')
I wanted to just have the combobox use the theme, but it effects all the widgets.
New contributor
Dudeness Boy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.