wxPython demo - Mask issue

Hello,

Python : 3.8.5
wxPython : 4.1.1
wxWidgets : 3.1.5
Platform : Windows 10

Look at the wxPython demo :

  • wxPython Overview/Miscellaneous/ShapedWindow
  • wxPython Overview/Advanced Generic Widgets/AdvancedSplash

or this link : Another example

There is an issue with mask.

ShapedWindow
AdvancedSplash
With_masked_area

Thanks. There were some recent changes that affected bitmaps with masks, and these samples were working then after some tweaks in wxPython. Perhaps something in wxWidgets changed again just before the release that broke it again. I’m looking into it…

To workaround you can use the new wx.Image.ConvertToRegion() method instead of wx.Region(bitmap)