I'm trying to change the background color of a ttk entry widget. I read this post ttk Entry background colour but I don't quite understand the element create stuff. Plus, its quite old. So I thought I'd ask here if there's an easier way to change the background color of a ttk widget or if there isn't, then what would I do to change it?
My current code is simply defining an entry widget and setting its background like this:
colorEntry = ttk.Entry(root, background='black')
I've also used styles but that hasn't worked either.
style = ttk.Style()
style.configure("TEntry", background='black')
Both these methods don't do anything to the background. If I try to change any other property like foreground, they work. I'm on windows 10 and using python 3.8.3.