From: Robin Dunn Date: Mon, 8 Mar 2004 23:16:59 +0000 (+0000) Subject: Added equality operators X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b403cd6583982f38ab41ae9c441cf19296004289 Added equality operators git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_bitmap.i b/wxPython/src/_bitmap.i index a5b032d961..8f9213ea36 100644 --- a/wxPython/src/_bitmap.i +++ b/wxPython/src/_bitmap.i @@ -190,6 +190,11 @@ public: #endif %pythoncode { def __nonzero__(self): return self.Ok() } + + %extend { + bool __eq__(const wxBitmap* other) { return other ? (*self == *other) : False; } + bool __ne__(const wxBitmap* other) { return other ? (*self != *other) : True; } + } };