Tkinter极简例子——Menu篇Tkinter Menu
Tkinter MenuMenu极简例子from tkinter import *def hello(): print('hello')root = Tk()menu = Menu(root)for item in ['python', 'tkinter', 'else']: menu.add_command(label=item, command=hello)root['menu'] = menuroot.mainloop()下拉菜单from tkin