X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab1f7d2aa9cb1857cf87e105ebbd36a92676bbde..4f84bfb64f80c03c8779a102ec9c87b9f3cc44ea:/wxPython/src/_palette.i diff --git a/wxPython/src/_palette.i b/wxPython/src/_palette.i index c83602f393..3070508c9e 100644 --- a/wxPython/src/_palette.i +++ b/wxPython/src/_palette.i @@ -30,11 +30,15 @@ public: DocDeclA( bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT), - "GetRGB(int pixel) -> (R,G,B)"); + "GetRGB(self, int pixel) -> (R,G,B)"); - bool Ok(); + int GetColoursCount() const; + bool IsOk(); + %pythoncode { Ok = IsOk } - %pythoncode { def __nonzero__(self): return self.Ok() } + %pythoncode { def __nonzero__(self): return self.IsOk() } + + %property(ColoursCount, GetColoursCount, doc="See `GetColoursCount`"); };