George Young wrote:
>
> [python1.6a2, gtk 1.2.5, pygtk 0.6.6]
>
> I have a togglebutton and a frame packed into an hbox.
> Clicking the togglebutton does hide/show on the frame's contents, which works fine:
> the frame and button shrink to just the button's and frame-label's height.
> But when the frame opens up, the togglebutton stretches in height with the frame,
> instead of staying a little square aligned with the top edge of the frame.
Without seeing any code, I can't give a definite answer to your
question. But I will try to help.
>
> How can I force the togglebutton to stay it's natural (square) size?
>
> I tried tog_but.set_policy(false,false,false), but I get an attibute error,
The set_policy method you are trying to use is from the GtkWindow class,
and a GtkToggleButton is not a GtkWindow.
> as though buttons don't have this method. The options for packing into the
> hbox seem only to pertain to the horizontal dimensions.
For details on box packing, I recommend looking at the examples in
Havoc's book on GTK and GNOME development. Take a look at:
http://developer.gnome.org/doc/GGAD/sec-containers.html
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk