Create a menu to your Python Tkinter application window. Create a simple pulldown / dropdown menu using TK in Python.
Source code viewer
from tkinter import Tk, mainloop, Menu root = Tk() # Menus menu_bar = Menu(root) file_menu = Menu(menu_bar, tearoff=0) file_menu.add_command(label="Exit", command=root.quit) menu_bar.add_cascade(label="File", menu=file_menu) root.config(menu=menu_bar) # END - Menus mainloop()Programming Language: Python