0
327views
Write a Program to implement menus in the GUI program.
1 Answer
2
2views

Code:-

from tkinter import * 
from tkinter.ttk import * 
from time import strftime 
root = Tk() 
root.title('Menu Demonstration') 
root.geometry("500x200")
menubar = Menu(root) 

file = Menu(menubar, tearoff = 0) 
menubar.add_cascade(label ='File', menu = file) 
file.add_command(label ='New File', command = None) 
file.add_command(label ='Open...', command = None) 
file.add_command(label ='Save', command = None)
file.add_command(label …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.