[pygtk] determine size needed to display scrolledwindow without
scrollbars
Eike Nicklas
lists at ephys.de
Tue Jan 29 17:24:17 WST 2008
On Tue, 29 Jan 2008 04:49:40 +0000 Nathaniel Smith wrote:
> On Sun, Jan 27, 2008 at 06:47:42PM +0100, Eike Nicklas wrote:
> > 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?
>
> Does my_treeview.size_request() give anything useful?
>
It does, thanks a lot, exactly what I wanted :-) Now I just have to add
some border widths, and that should be it.
More information about the pygtk
mailing list