X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e6b35578d9be94739e1f9ebadcb57d9a483db6a..170acdc90e9f92f8b8120fa6c04acdbf45c89582:/wxPython/src/_pen.i diff --git a/wxPython/src/_pen.i b/wxPython/src/_pen.i index e0fca1cb17..577c0a936e 100644 --- a/wxPython/src/_pen.i +++ b/wxPython/src/_pen.i @@ -42,7 +42,8 @@ public: int GetStyle(); int GetWidth(); - bool Ok(); + bool IsOk(); + %pythoncode { Ok = IsOk } void SetCap(int cap_style); void SetColour(wxColour& colour); @@ -98,11 +99,13 @@ public: #ifndef __WXMAC__ int GetDashCount() const; + %property(DashCount, GetDashCount, doc="See `GetDashCount`"); #endif #ifdef __WXMSW__ wxBitmap* GetStipple(); void SetStipple(wxBitmap& stipple); + %property(Stipple, GetStipple, SetStipple, doc="See `GetStipple` and `SetStipple`"); #endif @@ -110,7 +113,14 @@ public: bool __eq__(const wxPen* other) { return other ? (*self == *other) : false; } bool __ne__(const wxPen* other) { return other ? (*self != *other) : true; } } - %pythoncode { def __nonzero__(self): return self.Ok() } + %pythoncode { def __nonzero__(self): return self.IsOk() } + + %property(Cap, GetCap, SetCap, doc="See `GetCap` and `SetCap`"); + %property(Colour, GetColour, SetColour, doc="See `GetColour` and `SetColour`"); + %property(Dashes, GetDashes, SetDashes, doc="See `GetDashes` and `SetDashes`"); + %property(Join, GetJoin, SetJoin, doc="See `GetJoin` and `SetJoin`"); + %property(Style, GetStyle, SetStyle, doc="See `GetStyle` and `SetStyle`"); + %property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`"); };