From db2cef94d00f292638bfa13812455408b5d000fe Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Thu, 6 Jul 2023 12:46:57 -0400 Subject: [PATCH] Set missing pyInt on wxImage.Clear Fixes #2433. --- etg/image.py | 1 + unittests/test_image.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/etg/image.py b/etg/image.py index 142c9f05..11c44e7b 100644 --- a/etg/image.py +++ b/etg/image.py @@ -314,6 +314,7 @@ def run(): if p.type == 'unsigned char': p.pyInt = True + setParamsPyInt('Clear') setParamsPyInt('Replace') setParamsPyInt('ConvertAlphaToMask') setParamsPyInt('ConvertToMono') diff --git a/unittests/test_image.py b/unittests/test_image.py index 767b36a7..fb3f6202 100644 --- a/unittests/test_image.py +++ b/unittests/test_image.py @@ -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) + #---------------------------------------------------------------------------