- wxPyWizardPage(wxWizard *parent,
- const wxBitmap& bitmap = wxNullBitmap,
- const char* resource = NULL);
- %name(wxPrePyWizardPage)wxPyWizardPage();
-
- bool Create(wxWizard *parent,
- const wxBitmap& bitmap = wxNullBitmap,
- const char* resource = NULL);
+ %extend {
+ wxPyWizardPage(wxWizard *parent,
+ const wxBitmap* bitmap = &wxNullBitmap,
+ const wxString* resource = &wxPyEmptyString) {
+ wxChar* res = NULL;
+ if (resource->Length())
+ res = (wxChar*)resource->c_str();
+ return new wxPyWizardPage(parent, *bitmap, res);
+ }
+ }
+
+ %RenameCtor(PrePyWizardPage, wxPyWizardPage());
+
+ // Turn it back on again
+ %typemap(out) wxPyWizardPage* { $result = wxPyMake_wxObject($1, $owner); }
+
+ %extend {
+ bool Create(wxWizard *parent,
+ const wxBitmap& bitmap = wxNullBitmap,
+ const wxString& resource = wxPyEmptyString) {
+ wxChar* res = NULL;
+ if (resource.Length())
+ res = (wxChar*)resource.c_str();
+ return self->Create(parent, bitmap, res);
+ }
+ }