X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad411ab2f1582af5c334eb4d63aa1d610d780f9c..1ee3fb3846ae47c5292128a6f0bd4c8e38d7ba31:/wxPython/src/_pen.i?ds=inline diff --git a/wxPython/src/_pen.i b/wxPython/src/_pen.i index cf9d76b28c..860f18c987 100644 --- a/wxPython/src/_pen.i +++ b/wxPython/src/_pen.i @@ -29,6 +29,8 @@ %newgroup +MustHaveApp(wxPen); + class wxPen : public wxGDIObject { public: wxPen(wxColour& colour, int width=1, int style=wxSOLID); @@ -105,8 +107,8 @@ public: %extend { - bool __eq__(const wxPen* other) { return other ? (*self == *other) : False; } - bool __ne__(const wxPen* other) { return other ? (*self != *other) : True; } + bool __eq__(const wxPen* other) { return other ? (*self == *other) : false; } + bool __ne__(const wxPen* other) { return other ? (*self != *other) : true; } } %pythoncode { def __nonzero__(self): return self.Ok() } };