How to change menu background color of Tkinter's OptionMenu widget? How to change menu background color of Tkinter's OptionMenu widget? tkinter tkinter

How to change menu background color of Tkinter's OptionMenu widget?


You need to grab the menu object from the OptionMenu and set its background color. This should accomplish what you want...

w = OptionMenu(master, variable, "one", "two", "three")  w.config(bg = "GREEN")  # Set background color to green# Set this to what you want, I'm assuming "green"...w["menu"].config(bg="GREEN")w.pack()