[pygtk] changing packing properties during runtime
Kelvin Ho
kelvin.ho.ka.wai at gmail.com
Tue Jul 28 20:40:28 WST 2009
Hi,
Are you talking about a) the packing of the child expander widgets relative
to their parent vbox or b) the "expanded" property of the expander itself?
If a), you should look at gtk.Box.set_child_packing. If b), you should look
at gobject.GObject.set_property() to set the expanded property. My guess is
you'll want to play with a).
Kelvin
On Tue, Jul 28, 2009 at 8:13 AM, Kim Adil <kadil at proactiveindustrial.net>wrote:
> Hello,
>
> I have 3 expanders packed into a vbox. And in the box of the expanders,
> I have a treeview in a scrollwindow . I have played around with the
> combination of properties in glade, and I want the expanded expanders to
> use as much screen real-estate as possible when expanded, which means:
>
> - the expanded expanders, need to have their "expand" packing properties
> set to True
>
> and conversely
>
> - the collapsed expanders need need to have their "expand" packing
> properties set to False.
>
> I cannot seem to find how to set these properties programatically, but
> it is in the packing properties tab in glade. I hope I do not need to
> repack the widgets to get the effect I am loooking for? Any suggestions?
>
> Thanks,
> Kim
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090728/8d5ea917/attachment.htm
More information about the pygtk
mailing list