wxPython and loading multiple panels (code included)
i need to develop a gui which will load several "windows" depending on
what the users selects in the menu and i thought i could accomplish this
What i'm trying to do to test this is load an initial panel and then
when the user hits a button load a second panel. This doesn't seem to work.
1. what's the appropriate way of switching panels?
2. the loadNewPanel function seem wrong. I always get loading panel two".
==================== multi.py ===========================
from multi_panel import *
Thanks for this peace of code, very useful.
Two corrections have been made:
- we get superposition : to avoid that simply use Hide and Show method of wx.Panel
- we had an exception : because self.parent was not set in Panel2