In this video we will discuss Combo box,
Combo box is a combination of List box and an entry field. It is one of the Tkinter widgets where it contains a down arrow to select from a list of options. It helps the users to select according to the list of options displayed.
Source code:
from tkinter import *
from tkinter import ttk
root = Tk()
root.geometry("800x600")
root.title("Drop Box")
l1=Label(root, text="Order your Breakfast", font=("calibri",22),fg="Blue",bg="pink").pack(pady=20)
tiffin_menu=("Aloo Paratha", "Gobi Paratha","Upma","Dosa")
def Comboclick(event):
l1=Label(root, text="Hurry Today I will have "+combo1.get(),font=("calibri",22),fg="Blue",bg="pink").pack(pady=20)
combo1=ttk.Combobox(root, value=tiffin_menu)
combo1.current(0)
combo1.bind("ComboboxSelected", Comboclick){note: ComboboxSelected will be in two angle brackets which is not allowed in youtube description, Thank you}
combo1.pack(pady=20)
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