The above code shows correctly a menu in windows but doesn't show the same menu in WinCe. Anyone knows the reason ?
from Tkinter import * root = Tk()
def hello(): print "hello!"
# create a toplevel menu menubar = Menu(root) menubar.add_command(label="Hello!", command=hello)
menubar.add_command(label="Quit!", command=root.quit)
# display the menu root.config(menu=menubar) mainloop()
Log in to post a comment.
The above code shows correctly a menu in windows
but doesn't show the same menu in WinCe. Anyone knows the reason ?
from Tkinter import *
root = Tk()
def hello():
print "hello!"
# create a toplevel menu
menubar = Menu(root)
menubar.add_command(label="Hello!", command=hello)
menubar.add_command(label="Quit!", command=root.quit)
# display the menu
root.config(menu=menubar)
mainloop()