[pygtk] ScrolledWindow with TreeView is not behaving as expected

Enrico Minack enrico-minack at gmx.de
Sun Jul 3 02:45:17 WST 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-widget-window.py.png
Type: image/png
Size: 2802 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110702/de53f9a5/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: widget-window.py
Type: text/x-python
Size: 1103 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110702/de53f9a5/attachment.py>


More information about the pygtk mailing list