[pygtk] determine size needed to display scrolledwindow without scrollbars

Eike Nicklas lists at ephys.de
Mon Jan 28 02:47:42 WST 2008


Hi list,

I am writing a program that uses a gtk.ScrolledWindow to display a
gtk.Treeview. Now I would like to automatically determine the (minimum)
windowsize needed to display the Treeview without scrollbars. Is there
a simple way to do this?

Of course, I can try, which size works and use the 'hardcoded' version
window.set_default_size(xwidth, ywidth), but x/ywidth might not be the
correct values on a different platform.

Thanks a lot for your help,
Eike


More information about the pygtk mailing list