[pygtk] Get width from a pane

Paul Pogonyshev pogonyshev at gmx.net
Thu Nov 26 04:46:34 WST 2009


Henning Bredel wrote:
> I want to load an image in the right pane of a gtk.HPaned. The image
> shall fit in the pane (I don't want to use a scrolled pane for that).
> 
> How can I determine the currently used width of the right pane?

Untested:

    paned.get_children () [1].allocation.width

Paul


More information about the pygtk mailing list