Untitled
user_9733620
plain_text
a year ago
731 B
3
Indexable
from tkinter import* from tkinter import filedialog def save_file(): pass def open_file(): pass root = Tk() menu = Menu(root) root.config(menu=menu) root.geometry('500x500') root.title('Notepad') root.iconbitmap('') #tut nazva kartinki file_menu = Menu(menu,tearoff=0) file_menu.add_command(label='New') file_menu.add_command(label='Open file as...',command=open_file) file_menu.add_command(label='Save file as...',command=save_file) file_menu.add_command(label='Exit') help_menu = Menu(menu,tearoff=0) help_menu.add_command(label='Help') help_menu.add_command(label='About') menu.add_cascade(label='File',menu=file_menu) menu.add_cascade(label='Help',menu=help_menu) root.mainloop()
Editor is loading...
Leave a Comment