X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7012bb9f03e0012c32485655b7af4345b490bf4d..4f84bfb64f80c03c8779a102ec9c87b9f3cc44ea:/wxPython/src/_palette.i diff --git a/wxPython/src/_palette.i b/wxPython/src/_palette.i index ca1c1c28e7..3070508c9e 100644 --- a/wxPython/src/_palette.i +++ b/wxPython/src/_palette.i @@ -33,9 +33,10 @@ 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`"); };