Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

menu widget dosn't appear ...

Help
leo
2006-03-24
2013-05-30
  • leo
    leo
    2006-03-24

    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()