Tkinter only: table widget with canvas...
John Posner
jjposner at optimum.net
Sat Jul 11 09:31:58 EDT 2009
>> There's a working app at http://cl1p.net/tkinter_table_headers/
> Thank you for this example. However, one issue to that...
> When resizing the window (vertical) then the header moves away
> from the table. How can I avoid this with the grid? With "pack"
> I now this...
Oops ... packing can be tricky. Try these modifications:
header_frm.pack(side=TOP, anchor=W, expand=False)
...
table_frm.pack(side=TOP, expand=True, fill=BOTH)
You also might try constraining the top-level (root) window, using these
methods:
rt.geometry(XXX, YYY)
rt.resizable(False, True)
-John
More information about the Python-list
mailing list