[pygtk] Apportioning space when resizing a box

Steve McClure smcclure at racemi.com
Thu Mar 1 22:09:28 WST 2007


On Wed, 2007-02-28 at 20:43 -0700, Jeffrey Barish wrote:
> 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.

Not that I know of.

> 
> 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?

I use blank label widgets for spacers.
-- 
Steve McClure                                   Racemi
email: smcclure at racemi.com                      380 Interstate North Pkwy, SE
voice: 404-892-5850                             Suite 250
fax: 404-892-7215                               Atlanta, GA 30339
                                                http://www.racemi.com



More information about the pygtk mailing list