In this video we will discuss ListBox in TKinter.
The ListBox widget is used to display different types of items. The items must also be of Text type. The user can select one or more items from the given list according to the requirement.
Source code:
from tkinter import *
root = Tk()
root.geometry("800x600")
root.title("Drop Box")
l1=Label(root,text="Order your Breakfast",font=("calibri",22),fg="Blue",bg="pink")
l1.pack(pady=20)
#Define Listbox
listbox1=Listbox(root,font=("calibri",22),fg="Blue",bg="pink")
listbox1.pack()
listbox1.insert(END,"Idli)
listbox1.insert(END,"Dosa")
tiffin_menu=["Idli","Dosa","PuriSabji","Sandwich"]
for i in tiffin_menu:
listbox1.insert(END,i)
#To insert in 5th position
listbox1.insert(4,"Paratha")
def delete():
listbox1.delete(ANCHOR)
b1=Button(root,text="Click here to delete",command=delete)
b1.pack()
def select():
l2.config(text=listbox1.get(ANCHOR))
b2=Button(root,text="Click here to select from list box",command=select)
b2.pack()
l2=Label(root,text="",font=("calibri",22),fg="Blue",bg="pink")
l2.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 | Class...
Link for sql tutorial
• My SQL Class XII
Link for Cross Join
• MYSQL COMMANDS|Part-31| Cartesian Product...
Link for Aggregate functions
• MYSQL COMMANDS | Part - 6 | Aggregate Func...
Link for GROUP BY Clause
• MYSQL COMMANDS | Part -21| SQL GROUP BY CL...
Link for tkinter tutorial
• TKINTER GUIs IN PYTHON | Displaying Images...
Link for file handling
• Data File Handling |Writing and Reading in...
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 Computer...
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
Auf dieser Seite können Sie das Online-Video TKINTER GUIs IN PYTHON | List Boxes In TKinter | Tutorial #16 | mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Minati panda 13 März 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 248 Mal angesehen und es wurde von like den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!