Why is the menu not appearing in the window?
问题 I'm trying to add a menu into the UI but it doesn't show up. I copied everything directly from effbot.org/tkinterbook/menu.htm but it still isn't working. I'm using Python 3 and macOS 10 if that's relevant. from tkinter import * master = Tk() master.geometry('300x300') master.title('Table') def hello(): print("hello") menubar = Menu(master) menubar.add_command(label = "Hello!", command = hello) menubar.add_command(label = "Quit!", command = master.quit) master.config(menu=menubar) master