Reusing panels from dialogs

Hi,

Please see attached code.

In my quest for re-usification (heh!) of code, I'm trying to re-use a panel
from inside a dialog in a wizard. The dialog is defined in an XRC.

The panel definately takes up realestate inside the wizard, however it never
shows the content of the panel. I'm guessing this is related to calling
ShowModal() on dialogs before they are visible - so basically: Is there a way
to accomplish this, besides moving the panel outside of the dialog in the
XRC?

Thanks,
Frank

test.xrc (1011 Bytes)

wizard.py (1.56 KB)

Frank Aune wrote:

ยทยทยท

On Saturday 23 February 2008 03:08:05 Robin Dunn wrote:

The wxWizard class assumes that the wizard should always be the same
size no matter which page is current. So you'll have to do something
like intercept the page changed events and then set the size of the
wizard however you want it to be for the current page.

I've tried alot of layout approaches for the wizard, but whatever I do I can't seem to change the size of the wizard. Could I trouble you to explicitly say what kind of method and/or code will allow me to change the size of a wizard.

What have you tried already?

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!