// 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);
+ %property(Window, GetWindow, SetWindow, doc="See `GetWindow` and `SetWindow`");
};
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;