Creating Menu

PHOTO EMBED

Tue Aug 17 2021 15:16:56 GMT+0000 (Coordinated Universal Time)

Saved by @maryjaay666 #html

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
content_copyCOPY