On Wed, 14 Mar 2001, Eduardo Ferro wrote:
> Hi!
>
> I have an aplication that have a VerticalBox with 2 widget, the first
> is a HorizontalBox and the last one is a Button, i need that the
> button only ocupies (verticaly) the minumun (just to read the label)
> and the HorizontalBox use the rest.
>
> Whe i start the aplication the button only ocupies the minimun but
> when i change the dimensions the buttons use half of the window
> size...
> How can i change this behaviour??
When packing the button, set the expand argument to FALSE:
box.pack_start(child, expand=FALSE)
The exapnd setting for each child is used to work out how any space larger
than the minimum size required for the box is allocated among the
children. The fill setting says whether the child should fill the area
allocated to the widget. If it is false, it will just use the space it
requested.
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk