from Tkinter import *def filemenu(): filewin = Toplevel(root) fileclose = Button(filewin, text="Close Application") fileclose.config(command=root.quit) fileclose.pack()root = Tk()menubar = Menu(root)menubar.add_command(label="File", command=filemenu)menubar.add_command(label="Help")root.config(menu=menubar)root.mainloop()
Name (required)
email (will not be published) (required)
Website