]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_gdicmn.i
More PyPlot updates from Gordon Williams:
[wxWidgets.git] / wxPython / src / _gdicmn.i
index 860d306be4f420bd90c043ce48a8aabe8b9a53b0..c62c8c7c10ebbea8999948900f9bfa3cef37f31f 100644 (file)
@@ -132,8 +132,8 @@ public:
 
 // None/NULL is now handled properly by the typemap, so these are not needed.
 //     %extend {
-//         bool __eq__(const wxSize* other) { return other ? (*self == *other) : False; }
-//         bool __ne__(const wxSize* other) { return other ? (*self != *other) : True;  }
+//         bool __eq__(const wxSize* other) { return other ? (*self == *other) : false; }
+//         bool __ne__(const wxSize* other) { return other ? (*self != *other) : true;  }
 //     }
 
     DocDeclStr(
@@ -576,6 +576,8 @@ bottom, otherwise it is moved to the left or top respectively.", "",
 };
 
 
+MustHaveApp(wxIntersectRect);
+
 DocAStr(wxIntersectRect,
        "IntersectRect(Rect r1, Rect r2) -> Rect",
        "Calculate and return the intersection of r1 and r2.", "");
@@ -592,7 +594,7 @@ DocAStr(wxIntersectRect,
         if (dest != wxRect(0,0,0,0)) {
             bool blocked = wxPyBeginBlockThreads();
             wxRect* newRect = new wxRect(dest);
-            obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
+            obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
             wxPyEndBlockThreads(blocked);
             return obj;
         }