X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0eae5d09992c634488c5be14d5a378d6e1dedb71..47239bd6b640fa4e4c82fc851696c5f5d9e2fa37:/wxPython/src/_brush.i diff --git a/wxPython/src/_brush.i b/wxPython/src/_brush.i index 621faac4a0..e990a3b94c 100644 --- a/wxPython/src/_brush.i +++ b/wxPython/src/_brush.i @@ -102,8 +102,9 @@ uninitialised bitmap (`wx.Bitmap.Ok` returns False).", ""); DocDeclStr( - bool , Ok(), + bool , IsOk(), "Returns True if the brush is initialised and valid.", ""); + %pythoncode { Ok = IsOk } #ifdef __WXMAC__ @@ -111,7 +112,7 @@ uninitialised bitmap (`wx.Bitmap.Ok` returns False).", ""); void MacSetTheme(short macThemeBrush); #endif - %pythoncode { def __nonzero__(self): return self.Ok() } + %pythoncode { def __nonzero__(self): return self.IsOk() } %property(Colour, GetColour, SetColour, doc="See `GetColour` and `SetColour`"); %property(Stipple, GetStipple, SetStipple, doc="See `GetStipple` and `SetStipple`");