X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..3bcdbe527fde583072eefab67de8974c0e17a1e2:/wxPython/src/_palette.i diff --git a/wxPython/src/_palette.i b/wxPython/src/_palette.i index 6dafe16272..e2fdbe4b69 100644 --- a/wxPython/src/_palette.i +++ b/wxPython/src/_palette.i @@ -25,10 +25,14 @@ public: ~wxPalette(); int GetPixel(byte red, byte green, byte blue); - bool GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT); + + DocDeclA( + bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT), + "GetRGB(int pixel) -> (R,G,B)"); + bool Ok(); - %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()" + %pythoncode { def __nonzero__(self): return self.Ok() } };