]> 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 a4382bf318636642c67e8737582d050206de8389..c6ad86aa897494a522a9c71caefb1ed6ecc86182 100644 (file)
@@ -16,7 +16,6 @@
 //---------------------------------------------------------------------------
 %newgroup;
 
-%noautorepr wxColour;
 
 class wxColour : public wxObject {
 public:
@@ -55,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;
 //         }
     }
@@ -82,5 +81,9 @@ public:
         }
 };
 
+%pythoncode {
+    Color = Colour
+    NamedColor = NamedColour    
+}
 //---------------------------------------------------------------------------