linkmaster03
linkmaster03

Reputation: 4358

How can I show a widget and all its parent containers?

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.

Upvotes: 0

Views: 109

Answers (1)

Johannes Sasongko
Johannes Sasongko

Reputation: 4228

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.

Upvotes: 1

Related Questions