Learn Tkinter With Projects | Python Tkinter GUI Tutorial In Hindi #0

Code as described/written in the video

No source code associated with this video!


GURU at 2019-06-23 09:30:09 says
THIS CODE IS NOT WORKING ON MY MacBook Air 2019 sir , please mind solving my problem :- from tkinter import * root = Tk() root.geometry("733x566") root.title("Pycharm") def myfunc(): print("Mai ek bahut hi natkhat aur shaitaan function hoon") # #Use these to create a non dropdown menu # mymenu = Menu(root) # mymenu.add_command(label="File", command=myfunc) # mymenu.add_command(label="Exit", command=quit) # root.config(menu=mymenu) mainmenu = Menu(root) m1 = Menu(mainmenu, tearoff=0) m1.add_command(label="New project", command=myfunc) m1.add_command(label="Save", command=myfunc) m1.add_separator() m1.add_command(label="Save As", command=myfunc) m1.add_command(label="Print", command=myfunc) root.config(menu=mainmenu) mainmenu.add_cascade(label="File", menu=m1) m2 = Menu(mainmenu, tearoff=0) m2.add_command(label="Cut", command=myfunc) m2.add_command(label="Copy", command=myfunc) m2.add_separator() m2.add_command(label="Paste", command=myfunc) m2.add_command(label="Find", command=myfunc) root.config(menu=mainmenu) mainmenu.add_cascade(label="Edit", menu=m2) root.mainloop()
jv2407 at 2019-06-23 09:30:09 says