From 93cbfc35a908b783fd8442c4b85fbe57fa0a7d49 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 22 Jan 2020 11:26:15 -0800 Subject: [PATCH] Add docstring for SetMaskColour --- etg/bitmap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etg/bitmap.py b/etg/bitmap.py index ca822b7a..8936466c 100644 --- a/etg/bitmap.py +++ b/etg/bitmap.py @@ -89,7 +89,9 @@ def run(): c.find('SetMask.mask').transfer = True - c.addCppMethod('void', 'SetMaskColour', '(const wxColour& colour)', """\ + c.addCppMethod('void', 'SetMaskColour', '(const wxColour& colour)', + doc="Create a mask for this bitmap based on the pixels with the given colour.", + body="""\ wxMask* mask = new wxMask(*self, *colour); self->SetMask(mask); """)