X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8224a808113a10b21620f817b66f1a333211b773..f7a50432401c62a3300b0b9faa7e99d7ffe3d4e8:/wxPython/src/_brush.i diff --git a/wxPython/src/_brush.i b/wxPython/src/_brush.i index 99fbe50fb9..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,12 @@ 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`"); + %property(Style, GetStyle, SetStyle, doc="See `GetStyle` and `SetStyle`"); + }; //---------------------------------------------------------------------------