On 2001.01.09 09:03:58 -0800 George Young wrote:
> 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,
> as though buttons don't have this method.  The options for packing into
> the
> hbox seem only to pertain to the horizontal dimensions.
Typically, you pack the hbox inside a vbox:

vbox = gtk.GtkVBox(FALSE, 0)
vbox.pack_start(hbox, FALSE, FALSE, 0)

and then use the vbox.

This double-packing is often needed when you have an object inside a GtkBin
(GtkFrame, etc) because anything added with a
container.add()
will fill the container entirely.

Another, similar, method would be to use a GtkAlignment in a similar
manner.

(With apologies in advance if I misunderstood the question.)

-- 
Evan Martin - [EMAIL PROTECTED]
http://students.washington.edu/eeyem

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to