How To Change The Colour Of Menu In Tkinter Under Windows?
I'm using windows xp. I want to change menubar and labels foreground and background in TKinter. But, I'm unable to change. Can I change it in windows xp or I have to upgrade it to
Solution 1:
There is nothing you can do. Tkinter uses a native menu object for the menus, which means they will have exactly the same look and feel of other windows menus.
Solution 2:
from Tkinter import *
def log():
print'in log fun'
root = Tk()
menubar = Menu(root)
menubar.add_command(label = 'Label1', command = log)
root.config(bg='red',menu=menubar)
root.mainloop()
you can config the background color, not possible to menu background color. enter image description here
Post a Comment for "How To Change The Colour Of Menu In Tkinter Under Windows?"