ListBox with scrollBar : ListBox « GUI Tk « Python






ListBox with scrollBar

ListBox with scrollBar

import Tkinter

s = Tkinter.Scrollbar()
L = Tkinter.Listbox()

s.pack(side=Tkinter.RIGHT, fill=Tkinter.Y)
L.pack(side=Tkinter.LEFT, fill=Tkinter.Y)

s.config(command=L.yview)
L.config(yscrollcommand=s.set)

for i in range(30): 
   L.insert(Tkinter.END, str(i)*3)

Tkinter.mainloop()

           
       








Related examples in the same category

1.Insert image to a List box
2.Get selected value from ListboxGet selected value from Listbox
3.List Box: insert itemsList Box: insert items
4.List box demoList box demo
5.ScrollBar for List boxScrollBar for List box
6.Scrolled ListScrolled List