I'm trying to use the Tinker Menu widget, unsuccessfully. The very simple program I found at http://effbot.org/tkinterbook/menu.htm produces an empty window with no menu bar. This is the complete program:
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)
root.mainloop()
Any clue? I'm running OS X 10.9.5
I've done more reading on the subject. In Unix and Windows the menu appears at the top of the main window. In OS X, it should appear at the top of the screen (i.e., where people would expect it). In my case, the top of the screen only shows the Python menu.