X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2eb030f9e79819015f714ba5e4054b432fa6837..b519803b436486ca933d750c990ef64a29551221:/wxPython/src/wizard.i diff --git a/wxPython/src/wizard.i b/wxPython/src/wizard.i index da7624931f..32c7b7cd9a 100644 --- a/wxPython/src/wizard.i +++ b/wxPython/src/wizard.i @@ -65,7 +65,7 @@ class wxWizardEvent : public wxNotifyEvent public: wxWizardEvent(wxEventType type = wxEVT_NULL, int id = -1, - bool direction = True, + bool direction = true, wxWizardPage* page = NULL); // for EVT_WIZARD_PAGE_CHANGING, return True if we're going forward or @@ -207,6 +207,7 @@ public: %pythonAppend wxPyWizardPage "self._setCallbackInfo(self, PyWizardPage);self._setOORInfo(self)" %pythonAppend wxPyWizardPage() "" + %typemap(out) wxPyWizardPage*; // turn off this typemap // ctor accepts an optional bitmap which will be used for this page instead // of the default one for this wizard (should be of the same size). Notice @@ -225,6 +226,9 @@ public: %name(PrePyWizardPage)wxPyWizardPage(); + // Turn it back on again + %typemap(out) wxPyWizardPage* { $result = wxPyMake_wxObject($1, $owner); } + %extend { bool Create(wxWizard *parent, const wxBitmap& bitmap = wxNullBitmap, @@ -376,7 +380,7 @@ public: // show the prev/next page, but call TransferDataFromWindow on the current // page first and return False without changing the page if // TransferDataFromWindow() returns False - otherwise, returns True - bool ShowPage(wxWizardPage *page, bool goingForward = True); + bool ShowPage(wxWizardPage *page, bool goingForward = true); bool HasNextPage(wxWizardPage* page); bool HasPrevPage(wxWizardPage* page);