Make all wxMask constructors use the C++ (bitmap, colour) ctor, and
then just default in BLACK to simulate the default (monobitmap) behaviour. It's too tricky to make true monochome bitmaps in a platform independent way from the Python wrappers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,7 +40,7 @@ class TestMaskWindow(wx.ScrolledWindow):
|
||||
self.bmp_withmask = images.getTestStar2Bitmap()
|
||||
|
||||
# this mask comes from a monochrome bitmap
|
||||
self.bmp_themask = wx.BitmapFromImage(images.getTestMaskImage(), 1)
|
||||
self.bmp_themask = images.getTestMaskBitmap()
|
||||
mask = wx.Mask(self.bmp_themask)
|
||||
|
||||
# set the mask on our bitmap
|
||||
|
Reference in New Issue
Block a user