[Tutor] buttons, scrollbar, tkinter
Ron Alvarado
rha207 at worldnet.att.net
Thu May 19 04:19:02 CEST 2005
Is there any way to change this to put in a column of buttons and it will
scroll like it does now. I've tried but when I put in the buttons the
scrollbar just grows with all the buttons and won't do anything.
from Tkinter import *
root = Tk()
scrollbar = Scrollbar(root)
scrollbar.pack(side=RIGHT, fill=Y)
listbox = Listbox(root, yscrollcommand=scrollbar.set)
for i in range(55):
listbox.insert(END, str(i))
listbox.pack(side=LEFT, fill=BOTH)
scrollbar.config(command=listbox.yview)
Ron A
More information about the Tutor
mailing list