views:

21

answers:

1

In my program, there is a point where all widgets are hidden. Is there a simple way to show a widget and all of its parent containers? I am not able to use show_all(), because that would show other widgets that I don't want shown. I could go down the containers and show them all, but I would prefer not to if there is a more concise solution.

+1  A: 

Other than iterating through Widget.get_parent and showing them all, you can also set the no-show-all property on the widgets you don't want shown, and call show_all on the ancestor.

Johannes Sasongko
Thanks, `get_parent()` is cleaner than `get_children()`. I don't know why I was using `get_children()`. :)
linkmaster03