[Tkinter-discuss] Scroll a table, but not the first two rows?

Michael Lange klappnase at web.de
Wed May 31 13:18:58 CEST 2006

On Wed, 31 May 2006 13:06:57 +0200
Chris Niekel <chris at niekel.net> wrote:

> On Wed, May 31, 2006 at 02:45:20AM -0700, Mohammad Tayseer wrote:
> >    Why don't you separate the table from the header? The header should be
> >    *outside* the ScrolledFrame, so it's not scrolled
> Then the grids are different, and the columns are not aligned anymore. Or
> is there a way to force that?
Hi Chris,

maybe you can calculate the needed width for the header and the associated column and then
configure both to have the same width. If you bind this method to <Configure> events for
both the header and the column you should be able to make sure that the width will
be updated every time the needed width of the column changes.

I hope this helps


More information about the Tkinter-discuss mailing list