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.
Thanks, much! It worked to put the togglebutton inside it's own vbox,
then the vbox and the frame in the hbox.
I do hope to find a solution that does not require such extra widgets,
(even though I know boxes are light-weight).
My application tends to stretch the limits of X performance -- if some accursed user
decides to open up all ~800 steps, each with one of these togglebuttons, this solution
adds yet another 800 boxes to the mess... Maybe I should try growing potatoes instead.
Thanks again,
George
--
George Young, Rm. L-204 [EMAIL PROTECTED]
MIT Lincoln Laboratory
244 Wood St.
Lexington, Massachusetts 02420-9108 (781) 981-2756
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk