Merge pull request #2434 from swt2c/wximage_clear_pyint

Set missing pyInt on wxImage.Clear
This commit is contained in:
Scott Talbert
2023-07-06 14:45:03 -04:00
committed by GitHub
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)
#---------------------------------------------------------------------------