Menu Bars In TKinter| TKINTER GUIs IN PYTHON|Tutorial#18

Published: 23 March 2021
on channel: Minati panda
147
like

In this video we will discuss menu bars in TKinter.
Source Code:
from tkinter import *
import tkinter.messagebox as msg
root = Tk()
root.geometry("800x600")
root.title("Create menu")
mainmenu=Menu(root)
root.config(menu=mainmenu)
def func():
Label1=Label(root,text="You clicked the drop down item.",font=("Calibri",20),fg="blue",bg="cyan")
Label1.pack()
#File menu
menu1=Menu(mainmenu,tearoff=0)
menu1.add_command(label="New Project...",command=func)
menu1.add_command(label="New ...",command=func)
menu1.add_separator()
menu1.add_command(label="Save",command=func)
menu1.add_command(label="Save As",command=func)
mainmenu.add_cascade(label="File",menu=menu1)
#Edit menu

menu2=Menu(mainmenu,tearoff=0)

menu2.add_command(label="Cut",command=func)
menu2.add_command(label="Copy",command=func)
menu2.add_separator()
menu2.add_command(label="Paste",command=func)
menu2.add_command(label="Find",command=func)
mainmenu.add_cascade(label="Edit",menu=menu2)
#Help menu
def help():
msg.showinfo("Message to get help!")
menu3=Menu(mainmenu,tearoff=0)
menu3.add_command(label="Help",command=help)
mainmenu.add_cascade(label="Help",menu=menu3)
root.mainloop()
If you like the video don't forget to subscribe the channel
   / @minatipanda7456  
To see the complete playlist Computer Science sample paper 2021-2022
click on the following link:
   • CBSE SAMPLE PAPER - Solved 2021-22 | ...  
Link for sql tutorial
   • My SQL Class XII  

Link for Cross Join
   • MYSQL COMMANDS|Part-31|  Cartesian Pr...  

Link for Aggregate functions
   • MYSQL COMMANDS | Part - 6 | Aggregate...  

Link for GROUP BY Clause
   • MYSQL COMMANDS | Part -21| SQL GROUP ...  

Link for tkinter tutorial
   • TKINTER GUIs IN PYTHON | Displaying I...  
Link for file handling
   • Data File Handling |Writing and Readi...  
Link for Term1 practical file
   • Term1 Practical file  
Link for Tuple-class XI
   • Tuples  
Link for class XI videos
   • CLASS XI COMPUTER SCIENCE  
Link for Python Projects
   • Python Projects  
Link for class XII videos
   • Class XII Computer Science  
Link for Data Structures in Python
   • Data Structures -II  
Link for Lists in Python
   • Data Structures Linear List  
Link for Data Representation
   • Data Representation Class XI  
Link for Computer System Overview ch-1 class -XI
   • Computer System Overview Class XI Com...  
Link for Working with Functions-
   • Working with Function Class XII  



tkinter,python tkinter,tkinter library,tkinter course,tkinter tutorial,user interface,good tkinter application,graphic user interface,graphical user interface,gui software,how to program a tkinter application,mainloop,ui design,create gui,python project for beginners,gui program,application,programming,python file,extract text from pdf,gui,python project,how to program,command prompt,gui application,atom,create python gui,python programming