Dynamic panel

In my application I have a panel on the right side showing the status of the
program. This panel needs to display different information in different
layouts (using different controls). How can this be done?

I've tried to make a panel class for each of the layouts, but I'm having
problems showing it correctly. If I use sizers I can't get the panels to
switch place (Tried using Show(True/False)). I've also tried to remove/add
the panels to the sizer, but this doesn't work.

Any ideas how to solve this? (Hopefully in a structured way)

Cheers,
Thomas

In my application I have a panel on the right side showing the
status of the
program. This panel needs to display different information in different
layouts (using different controls). How can this be done?

I've tried to make a panel class for each of the layouts, but I'm having
problems showing it correctly. If I use sizers I can't get the panels to
switch place (Tried using Show(True/False)). I've also tried to remove/add
the panels to the sizer, but this doesn't work.

Any ideas how to solve this? (Hopefully in a structured way)

This is exactly what wxNotebook is designed for; also see how the demo is
set up (Main.py) for another way to do this. Also, wxPy 2.5 will have a new
control that will do something similar (wxListbook).

This is exactly what wxNotebook is designed for; also see how the demo is
set up (Main.py) for another way to do this. Also, wxPy 2.5 will have a new
control that will do something similar (wxListbook).

The online doc also mentions a wxTabCtrl which doesn't appear to be
wrapped in wxPython. So there will be at least 2 or 3 different ways
in 2.5 of doing this! Heck, here are some screenshots of others
that have been left out :slight_smile:

Ah, OS/2:

  http://www.blackpalace.com/tour/page3.htm

Pretty. You can almost do this in wxPython:

  http://www.biopim.com/biopim/images/shot/shot-notebook.gif

I also vaguely remember OS/2 have ruled pages with the notebook
with a sprial bound and the tabs on the left. Couldn't find
any screenshots though.

Roger