X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33adb15261cec222e829b631f80cc68d71d250a6..d88d4683f3e85a5a9b63e8bd95686a42e7d1203a:/wxPython/src/_pen.i diff --git a/wxPython/src/_pen.i b/wxPython/src/_pen.i index 150417ea1e..757872a251 100644 --- a/wxPython/src/_pen.i +++ b/wxPython/src/_pen.i @@ -63,7 +63,10 @@ public: } } - bool operator==(const wxPen& pen) /*const*/; + %extend { + bool __eq__(const wxPen* other) { return other ? (*self == *other) : False; } + bool __ne__(const wxPen* other) { return other ? (*self != *other) : True; } + } #ifndef __WXMAC__ // wxDash* GetDash() const;