X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94d33c49d11788ae1939e9fffb0b28fe04693f47..dd33b115d6fed7df33b76597cf52b0db7d88bdeb:/wxPython/src/_colour.i diff --git a/wxPython/src/_colour.i b/wxPython/src/_colour.i index b088443f00..c6ad86aa89 100644 --- a/wxPython/src/_colour.i +++ b/wxPython/src/_colour.i @@ -54,17 +54,17 @@ public: // bool __eq__(PyObject* obj) { // wxColour tmp; // wxColour* ptr = &tmp; -// if (obj == Py_None) return FALSE; +// if (obj == Py_None) return False; // wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear()); -// if (! success) return FALSE; +// if (! success) return False; // return *self == *ptr; // } // bool __ne__(PyObject* obj) { // wxColour tmp; // wxColour* ptr = &tmp; -// if (obj == Py_None) return TRUE; +// if (obj == Py_None) return True; // wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear()); -// if (! success) return TRUE; +// if (! success) return True; // return *self != *ptr; // } } @@ -81,5 +81,9 @@ public: } }; +%pythoncode { + Color = Colour + NamedColor = NamedColour +} //---------------------------------------------------------------------------