X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33adb15261cec222e829b631f80cc68d71d250a6..52f52ebc4e0be6a9899d328b08db9eb14629d219:/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;