Add a Menu bar in Python
from tkinter import *
from tkinter import Menu
window = Tk()
window.title("Welcome to LikeGeeks app")
menu = Menu(window)
new_item = Menu(menu)
new_item.add_separator()
menu.add_cascade(label='File', menu=new_item)
new_item.add_command(label='Edit')
new_item.add_command(label='New')
menu.add_cascade(label='Edit')
menu.add_cascade(label='View')
menu.add_cascade(label='Tools')
window.config(menu=menu)
window.mainloop()
OUTPUT
No comments:
Post a Comment
Please do not any spam link in Comment Box