[pygtk] Apportioning space when resizing a box

Jeffrey Barish jeff_barish at earthlink.net
Thu Mar 1 12:43:37 WST 2007


Is there a way to apportion space when resizing a box?  For example, suppose
that you have two widgets in a hbox.  Is there a way to specify that one
should get 1/3 of the available width and the other 2/3?  I'm looking for
something like that the wxPython proportion parameter.

Also, is there a concept of a spacer?  You might have two widgets that you
want spaced uniformly on a line.  Specifying spacer | widget1 | spacer |
widget2 | spacer and turning fill on for the spacers but not for the
widgets would get the job done.  Is there another way?
-- 
Jeffrey Barish



More information about the pygtk mailing list