X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..52f52ebc4e0be6a9899d328b08db9eb14629d219:/wxPython/src/_validator.i diff --git a/wxPython/src/_validator.i b/wxPython/src/_validator.i index f04eb83383..2951244f36 100644 --- a/wxPython/src/_validator.i +++ b/wxPython/src/_validator.i @@ -32,7 +32,7 @@ class wxValidator : public wxEvtHandler { public: - %addtofunc wxValidator "self._setOORInfo(self)" + %pythonAppend wxValidator "self._setOORInfo(self)" wxValidator(); //~wxValidator(); @@ -56,7 +56,7 @@ public: // validators beep by default if invalid key is pressed, these functions // allow to change it static bool IsSilent(); - static void SetBellOnError(int doIt = TRUE); + static void SetBellOnError(int doIt = True); }; @@ -73,12 +73,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); class wxPyValidator : public wxValidator { public: - %addtofunc wxPyValidator " + %pythonAppend wxPyValidator " self._setCallbackInfo(self, PyValidator, 1) self._setOORInfo(self)" wxPyValidator(); - void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=TRUE); + void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=True); };