Tkinter "frame"s don't scroll.  Instead, you need to use something like
bwidget's "ScrollableFrame" widget.  You may want to combine this with
bwidget's "ScrolledWindow".

Below is an example which uses my "pybwidget" package, available at
        http://tkinter.unpy.net/bwidget/
# ----------------------------------------------------------------------
import Tkinter, bwidget
 
t = Tkinter.Tk()
s = bwidget.ScrolledWindow(t, auto="vertical", scrollbar="vertical")
f = bwidget.ScrollableFrame(s, constrainedwidth=True)
g = f.getframe()

for i in range(20):
    Tkinter.Label(g, text="Field %d:  " % i).grid(row=i, column=0, sticky="w")
    Tkinter.Entry(g, width=25).grid(row=i, column=1, sticky="ew") 
g.grid_columnconfigure(1, weight=1)

s.setwidget(f)
s.pack(fill="both", expand=1)
t.mainloop()
# ----------------------------------------------------------------------

Jeff

Attachment: pgplDevMyZAn5.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to