[pygtk] ScrolledWindow with TreeView is not behaving as expected
Pietro Battiston
me at pietrobattiston.it
Mon Jul 4 17:03:50 WST 2011
Giuseppe Penone already answered correctly.
You find a workarounds (a bit old and possibly buggy) here:
http://www.pietrobattiston.it/wiki/pygtk:resizing
Also see this thread if you're interested on some discussion on the
issue:
http://www.daa.com.au/pipermail/pygtk/2009-August/017372.html
bye
Pietro
Il giorno lun, 04/07/2011 alle 10.41 +0200, Giuseppe Penone ha scritto:
> Hi Enrico,
> in my opinion the scrolledwindow behaves correctly.
> The scrolledwindow just takes the size of his parent and can hold
> child
> widgets of any dimension thanks to the scrollbars.
> The scrolledwindow is not supposed to change size according to what
> you place inside.
> Cheers,
> Giuseppe.
>
>
>
> On Sat, Jul 2, 2011 at 20:45, Enrico Minack <enrico-minack a gmx.de>
> wrote:
> Hi pygtk users,
>
> I am facing an unexpected behavior of a Gtk.Window with a
> ScrolledWindow
> containing a TreeView. The window always has minimal size. The
> behavior
> that I desire would be that the Gtk.Window scales as the
> TreeStore /
> TreeView grows until it reaches the limit of the screen. This
> happens
> without the ScrolledWindow. With a ScrolledWindow, the scroll
> bars then
> should appear when the TreeView does not fit the screen.
>
> I attached demo code. The set_policy method does not lead to
> the desired
> behavior.
>
> I'd highly appreciate any hints how the resize behavior of the
> ScrollWindow could be manipulated into the desired direction.
>
> Kind regards,
> Enrico Minack
>
> _______________________________________________
> pygtk mailing list pygtk a daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
> _______________________________________________
> pygtk mailing list pygtk a daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
More information about the pygtk
mailing list