Resizing FoldPanelBar to use avalible space

Anton Blomberg anton.blomberg at swiss.se
Wed Mar 5 02:31:53 PST 2008


I've created a simple GUI with a few FoldPanels on top of each other
using FoldPanelBar. When I minimize one FoldPanel I want all other
FoldPanels, and their contents, to resize and increase height to cover
the newly aquired space.

Like this:

Starting with:
3 expanded FoldPanels with height 100.
100 + 100 + 100 = 300 total height

And then:
1 collapsed FoldPanel with height 0.
2 expanded FoldPanels with height 150.
0 + 150 + 150 = 300 total height.


Can I do this with FoldPanelBar? If not, can I do it with sizers/some
other way?
Code snippets are welcome.

Thanks,
Anton Blomberg
Swiss International
www.swiss.se




More information about the wxpython-users mailing list