Removing and Adding a different widget

To illustrate my problem I've added a running example.
I would like to remove PanelX and add PanelY to my splitter.

panelTest.py (758 Bytes)

Hi Jonas,

panelTest.py (1.06 KB)

···

On Wed, Oct 7, 2009 at 8:45 AM, Jonas Geiregat jonas@geiregat.org wrote:

To illustrate my problem I’ve added a running example.

I would like to remove PanelX and add PanelY to my splitter.

Let me help you out here: http://lmgtfy.com/?q=wxpython+splitter

After reading through the docs a little, I noticed the ReplaceWindow function. I’ve attached a modified version of your code that works on my windows box.


Mike Driscoll

Blog: http://blog.pythonlibrary.org