- 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);
+ }
+ }
+
+ %name(PrePyWizardPage)wxPyWizardPage();
+
+ %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);
+ }
+ }