[pygtk] ScrolledWindow with TreeView is not behaving as expected

Giuseppe Penone giuspen at gmail.com
Mon Jul 4 16:41:56 WST 2011


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 at 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 at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110704/8fd8ca05/attachment.html>


More information about the pygtk mailing list