X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf4dfd14673d7649feb85875b81be1d2c0f36176..3bdec81e147765682eda34adb84288a5eb9ab6c2:/wxPython/src/_palette.i diff --git a/wxPython/src/_palette.i b/wxPython/src/_palette.i index 1ce21e1b3c..3070508c9e 100644 --- a/wxPython/src/_palette.i +++ b/wxPython/src/_palette.i @@ -33,9 +33,12 @@ public: "GetRGB(self, int pixel) -> (R,G,B)"); int GetColoursCount() const; - bool Ok(); + 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`"); };