// hopefully be understood by the user)
bool FromUserString(const wxString& s);
wxString ToUserString() const;
+
+ %property(Encoding, GetEncoding, SetEncoding, doc="See `GetEncoding` and `SetEncoding`");
+ %property(FaceName, GetFaceName, SetFaceName, doc="See `GetFaceName` and `SetFaceName`");
+ %property(Family, GetFamily, SetFamily, doc="See `GetFamily` and `SetFamily`");
+ %property(PointSize, GetPointSize, SetPointSize, doc="See `GetPointSize` and `SetPointSize`");
+ %property(Style, GetStyle, SetStyle, doc="See `GetStyle` and `SetStyle`");
+ %property(Underlined, GetUnderlined, SetUnderlined, doc="See `GetUnderlined` and `SetUnderlined`");
+ %property(Weight, GetWeight, SetWeight, doc="See `GetWeight` and `SetWeight`");
};
// 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
%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