X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02376d73485f39cc05721e5ea95e43cd48105fd5..1f443284e1584947ef9007f4c8a055121effa366:/wxPython/src/_gbsizer.i diff --git a/wxPython/src/_gbsizer.i b/wxPython/src/_gbsizer.i index a28621347e..a87e92eef4 100644 --- a/wxPython/src/_gbsizer.i +++ b/wxPython/src/_gbsizer.i @@ -65,8 +65,10 @@ public: void SetRow(int row); void SetCol(int col); - bool operator==(const wxGBPosition& p) const; - bool operator!=(const wxGBPosition& p) const; + %extend { + bool __eq__(const wxGBPosition* other) { return other ? (*self == *other) : False; } + bool __ne__(const wxGBPosition* other) { return other ? (*self != *other) : True; } + } %extend { void Set(int row=0, int col=0) { @@ -117,8 +119,10 @@ public: void SetRowspan(int rowspan); void SetColspan(int colspan); - bool operator==(const wxGBSpan& o) const; - bool operator!=(const wxGBSpan& o) const; + %extend { + bool __eq__(const wxGBSpan* other) { return other ? (*self == *other) : False; } + bool __ne__(const wxGBSpan* other) { return other ? (*self != *other) : True; } + } %extend { void Set(int rowspan=1, int colspan=1) {