[sugar] hiding a gtk.widget without unmapping it

Erik Blankinship erikb at mediamods.com
Wed Aug 22 08:13:43 EDT 2007


> have you considered making the widget insensitive?


Good suggestion, although making widgets insensitive does not make them
invisible.


> Also, try explaining what you want to do, perhaps there are alternative
> approaches to your problem.


I would like to make a panel of widgets disappear when they are not needed
in my ui, but without causing the layout manager to mess up the surrounding
layout.

Other possible solutions:
Maybe I can use something like a tabbed panel (without showing the tabs)?

Overwrite the widget's paint methods, and use my own "visible" flag when I
want them to appear with a queue_draw().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20070822/c65c4f82/attachment.htm 


More information about the Sugar mailing list