X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99a001dd43b3b2b23ea5787c7a94c5328e3c3375..f6342fb5e6524edffa219d5843536ea279bba4df:/wxPython/src/_validator.i diff --git a/wxPython/src/_validator.i b/wxPython/src/_validator.i index 1d36c338de..8d4377ab74 100644 --- a/wxPython/src/_validator.i +++ b/wxPython/src/_validator.i @@ -63,6 +63,7 @@ public: static bool IsSilent(); static void SetBellOnError(int doIt = true); + %property(Window, GetWindow, SetWindow, doc="See `GetWindow` and `SetWindow`"); }; @@ -78,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); };