Reusing panels from dialogs

Frank Aune Frank.Aune at broadpark.no
Fri Feb 22 04:36:03 PST 2008


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
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8"?>
<resource>
  <object class="wxDialog" name="DIALOG1">
    <object class="wxBoxSizer">
      <orient>wxVERTICAL</orient>
      <object class="sizeritem">
        <object class="wxBoxSizer">
          <orient>wxVERTICAL</orient>
          <object class="sizeritem">
            <object class="wxPanel" name="PANEL1">
              <object class="wxBoxSizer">
                <orient>wxVERTICAL</orient>
                <object class="sizeritem">
                  <object class="wxBoxSizer">
                    <orient>wxVERTICAL</orient>
                    <object class="sizeritem">
                      <object class="wxStaticText" name="">
                        <label>Hello from XRC</label>
                      </object>
                    </object>
                  </object>
                </object>
              </object>
            </object>
          </object>
        </object>
      </object>
    </object>
    <title></title>
  </object>
</resource>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wizard.py
Type: application/x-python
Size: 1598 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080222/c45345dc/wizard.bin


More information about the wxpython-users mailing list