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