X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7aada1e05a7ed29ee5a0afb5f3464b803e966d7c..d576c660f7b6679d74ffef8a6f3d46b901bd37ee:/wxPython/src/_palette.i diff --git a/wxPython/src/_palette.i b/wxPython/src/_palette.i index ae12eb90cc..3070508c9e 100644 --- a/wxPython/src/_palette.i +++ b/wxPython/src/_palette.i @@ -32,9 +32,13 @@ public: bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT), "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`"); };