from tkinter import * # This will import everything from tkinter root = Tk() # Is the Tk window my_menu = Menu(root) root.config(menu=my_menu) # creating the menu bar sub_menu = Menu(my_menu) # Creating menu inside a menu my_menu.add_cascade(label="File", menu=sub_menu) # This is the sub menu edit_menu = Menu(my_menu) my_menu.add_cascade(label="Edit", menu=edit_menu) root.mainloop() # Is the END of loop