%extend {
+ KeepGIL(Get);
DocAStr(Get,
"Get() -> (r, g, b)",
"Returns the RGB intensity values as a tuple.", "");
return rv;
}
+ KeepGIL(GetRGB);
DocStr(GetRGB,
"Return the colour as a packed RGB value", "");
unsigned long GetRGB() {
__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 {