]> git.saurik.com Git - wxWidgets.git/commitdiff
Added equality operators
authorRobin Dunn <robin@alldunn.com>
Mon, 8 Mar 2004 23:16:59 +0000 (23:16 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 8 Mar 2004 23:16:59 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_bitmap.i

index a5b032d961367e859be5aa9219982735b08b6207..8f9213ea362d19a581a298c0b253bd9e335bc4e9 100644 (file)
@@ -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;  }
+    }
 };