X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dba7934c9d1b520ff7b48cd0d80cc52f8be6a052..5917d04127f414f0c2cd400581cb1c47395a3479:/wxPython/src/_validator.i 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); };