X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28cc717d5a48c229d8d09ef9ece751949074ae5d..eac789ff9ce99e51d40a71eb989350cbfa8b1eef:/wxPython/src/_colour.i diff --git a/wxPython/src/_colour.i b/wxPython/src/_colour.i index 9934bfca23..37f638b23c 100644 --- a/wxPython/src/_colour.i +++ b/wxPython/src/_colour.i @@ -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 {