X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/203bfdca0c885d6ac295e4ffea1c95d80fe75b85..f62262aacfac8b03ad7b8aca946c4fd5717b6c2e:/wxPython/src/_font.i diff --git a/wxPython/src/_font.i b/wxPython/src/_font.i index 82a49c1355..ac507526bc 100644 --- a/wxPython/src/_font.i +++ b/wxPython/src/_font.i @@ -656,9 +656,10 @@ the closest size is found using a binary search. // was the font successfully created? DocDeclStr( - bool , Ok() const, + bool , IsOk() const, "Returns ``True`` if this font was successfully created.", ""); - %pythoncode { def __nonzero__(self): return self.Ok() } + %pythoncode { Ok = IsOk } + %pythoncode { def __nonzero__(self): return self.IsOk() } // comparison @@ -860,11 +861,11 @@ MustHaveApp(wxPyFontEnumerator); %rename(FontEnumerator) wxPyFontEnumerator; class wxPyFontEnumerator { public: - %pythonAppend wxPyFontEnumerator "self._setCallbackInfo(self, FontEnumerator, 0)" + %pythonAppend wxPyFontEnumerator setCallbackInfo(FontEnumerator) wxPyFontEnumerator(); ~wxPyFontEnumerator(); - void _setCallbackInfo(PyObject* self, PyObject* _class, bool incref); + void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=0); bool EnumerateFacenames( wxFontEncoding encoding = wxFONTENCODING_SYSTEM, // all