X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab1f7d2aa9cb1857cf87e105ebbd36a92676bbde..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/src/_palette.i?ds=inline 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`"); };