Grokbase Groups Python tutor May 2005
FAQ
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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
grouptutor @
categoriespython
postedMay 19, '05 at 12:19a
activeMay 19, '05 at 9:11p
posts3
users2
websitepython.org

2 users in discussion

Ron Alvarado: 2 posts Jfouhy: 1 post

People

Translate

site design / logo © 2017 Grokbase