X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dba7934c9d1b520ff7b48cd0d80cc52f8be6a052..26ee65c723cf55822c540506f064ec11d9b26858:/wxPython/src/_validator.i?ds=sidebyside diff --git a/wxPython/src/_validator.i b/wxPython/src/_validator.i index 4c72e8b05a..8d4377ab74 100644 --- a/wxPython/src/_validator.i +++ b/wxPython/src/_validator.i @@ -79,12 +79,11 @@ IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); class wxPyValidator : public wxValidator { public: - %pythonAppend wxPyValidator " - self._setCallbackInfo(self, PyValidator, 1) - self._setOORInfo(self)" + %pythonAppend wxPyValidator "self._setOORInfo(self);" setCallbackInfo(PyValidator) + wxPyValidator(); - void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=true); + void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=1); };