]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_colour.i
Applied patch [ 845171 ] Use transparancy mask in wxBitmapShape
[wxWidgets.git] / wxPython / src / _colour.i
index b088443f00b607b56719f1a9848eb74a7eabc830..c6ad86aa897494a522a9c71caefb1ed6ecc86182 100644 (file)
@@ -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    
+}
 //---------------------------------------------------------------------------