X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a72f4631fe5ab7ebeefdacf8ec9c826ea962133f..9e477492e29e03c02827b1e42a16cb09a13f5149:/wxPython/src/_validator.i?ds=sidebyside diff --git a/wxPython/src/_validator.i b/wxPython/src/_validator.i index b3e4e55aa4..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,18 +79,16 @@ 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); }; %immutable; -// See also wxPy_ReinitStockObjects in helpers.cpp const wxValidator wxDefaultValidator; %mutable;