Python GUI Tutorial - 25 - Listbox - part 1 | Tkinter

Pubblicato il: 23 luglio 2018
sul canale di: Indrajeet Singh
8,152
59

In this video I'll show you how we can add a listbox into our Tkinter Application to represent items in a list and also how we can define height and width of the listbox.

code in the video -


from tkinter import *

root = Tk()

l = Listbox(root, width=30, height=15)
l.insert(1, "C++")
l.insert(2, "C#")
l.insert(3, "Python")
l.insert(4, "Java")
l.insert(5, "Javascript")

l.pack()

root.geometry("400x400+120+120")
root.mainloop()


-----------------------------------------------------




I'm sure your query like -
how to make a listbox in tkinter?
how to make a listbox in tkinter python?
how to insert items in listbox in tkinter?
how to set width and height of the listbox in tkinter?
how to set size of the listbox in tkinter?
what is default size of the listbox?
what is default height and width of the tkinter listbox?

have been solved.


if you have any problem related to this video then please comment below we'll reply as soon as possible.
Thanks for watching.


In questa pagina del sito puoi guardare il video online Python GUI Tutorial - 25 - Listbox - part 1 | Tkinter della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Indrajeet Singh 23 luglio 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8,152 volte e gli è piaciuto 59 spettatori. Buona visione!