X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..a2a03d7864c96401b99b3fde43ae7cb5ace83814:/wxPython/src/_validator.i diff --git a/wxPython/src/_validator.i b/wxPython/src/_validator.i index 10da1778a5..e68789f9e9 100644 --- a/wxPython/src/_validator.i +++ b/wxPython/src/_validator.i @@ -32,11 +32,16 @@ class wxValidator : public wxEvtHandler { public: - %addtofunc wxValidator "self._setOORInfo(self)" + %pythonAppend wxValidator "self._setOORInfo(self)" + %typemap(out) wxValidator*; // turn off this typemap + wxValidator(); //~wxValidator(); + // Turn it back on again + %typemap(out) wxValidator* { $result = wxPyMake_wxObject($1, $owner); } + // Make a clone of this validator (or return NULL) wxValidator* Clone(); @@ -73,7 +78,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); class wxPyValidator : public wxValidator { public: - %addtofunc wxPyValidator " + %pythonAppend wxPyValidator " self._setCallbackInfo(self, PyValidator, 1) self._setOORInfo(self)" wxPyValidator();