Set missing pyInt on wxImage.Clear

Fixes #2433.
This commit is contained in:
Scott Talbert
2023-07-06 12:46:57 -04:00
parent f4db521a37
commit db2cef94d0
2 changed files with 5 additions and 0 deletions

View File

@@ -314,6 +314,7 @@ def run():
if p.type == 'unsigned char':
p.pyInt = True
setParamsPyInt('Clear')
setParamsPyInt('Replace')
setParamsPyInt('ConvertAlphaToMask')
setParamsPyInt('ConvertToMono')

View File

@@ -310,6 +310,10 @@ class image_Tests(wtc.WidgetTestCase):
imghndlr = TestImageHandler()
wx.Image.AddHandler(imghndlr)
def test_imageClear(self):
img = wx.Image(100,100)
img.Clear(255)
#---------------------------------------------------------------------------