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 <[email protected]> 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   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to