X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c21b1879f0ca558561fed7354d37624c10c0268..302129f8967bd8589649a181160202783193890b:/wxPython/src/_pen.i?ds=sidebyside diff --git a/wxPython/src/_pen.i b/wxPython/src/_pen.i index 40a09b39e5..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); @@ -112,7 +113,7 @@ 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`");