[Tkinter-discuss] simple scrollbar... not so simple
sxn02 at yahoo.com
Wed Nov 24 07:16:11 CET 2010
I have a list of checkboxes and label/entry pairs which I'd like to have in a scrollable widget.
So I built something like this (in this example I put just labels):
from Tkinter import *
tx=Text(r) # hosts the frames and allows scrollbar
f=Frame(tx) # hosts my stuff
for i in range(50):
Label(f,text=('line #%d' % i)).grid()
The scrollbar appears, but is inactive (grayed out), and has no slider.
What am I missing?
More information about the Tkinter-discuss