[wxPython-users] How to change panels/windows
Christopher Barker
Chris.Barker at noaa.gov
Wed Feb 27 10:57:49 PST 2008
Rickey, Kyle W wrote:
> Martin, in that case I would probably create all the controls you know
> you will be using and place them on the panel. Then hide/show the
> appropriate controls and update which ones are in the sizer.
Depending on how different th panels are, but I'd create a set of =
separate panels for each one, and Hide/show the panel you need. There is =
no need to make it size (0,0), you can create lots of Panels, and keep =
them around without them being visible.
Enclosed is a little sample app that demonstrates that, switching the =
panels from buttons on the panels themselves, but you can adapt it to =
your needs.
-Chris
-- =
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangePanel.py
Type: text/x-python
Size: 2386 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080=
227/957ea495/ChangePanel.py
More information about the wxpython-users
mailing list