]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_colour.i
implemented DrawPoint in terms of DrawLine (for now)
[wxWidgets.git] / wxPython / src / _colour.i
index 9934bfca237eb8732c6962b78ab4e2cb2384e287..37f638b23c641d607450496e2d8a413db098c682 100644 (file)
@@ -161,6 +161,7 @@ is returned if the pixel is invalid (on X, unallocated).", "");
 
 
     %extend {
+        KeepGIL(Get);
         DocAStr(Get,
                 "Get() -> (r, g, b)",
                 "Returns the RGB intensity values as a tuple.", "");
@@ -184,6 +185,7 @@ is returned if the pixel is invalid (on X, unallocated).", "");
             return rv;
         }
 
+        KeepGIL(GetRGB);
         DocStr(GetRGB,
                "Return the colour as a packed RGB value", "");
         unsigned long GetRGB() {
@@ -200,6 +202,10 @@ is returned if the pixel is invalid (on X, unallocated).", "");
         __safe_for_unpickling__ = True
         def __reduce__(self):               return (Colour, self.Get(True))
         }
+
+    %property(Pixel, GetPixel, doc="See `GetPixel`");
+    %property(RGB, GetRGB, SetRGB, doc="See `GetRGB` and `SetRGB`");
+    
 };
 
 %pythoncode {