projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add demo showing drawing of an image with an Alpha channel.
[wxWidgets.git]
/
wxPython
/
demo
/
Mask.py
diff --git
a/wxPython/demo/Mask.py
b/wxPython/demo/Mask.py
index 0af29a37612b714c3cfec89742d524de42b91742..3820c323b8c6c48488231243992f77ca1e8d36a0 100644
(file)
--- a/
wxPython/demo/Mask.py
+++ b/
wxPython/demo/Mask.py
@@
-40,7
+40,7
@@
class TestMaskWindow(wx.ScrolledWindow):
self.bmp_withmask = images.getTestStar2Bitmap()
# this mask comes from a monochrome bitmap
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
mask = wx.Mask(self.bmp_themask)
# set the mask on our bitmap
@@
-127,5
+127,5
@@
Context (dc) <code>Blit()</code> method's logic codes.
if __name__ == '__main__':
import sys,os
import run
if __name__ == '__main__':
import sys,os
import run
- run.main(['', os.path.basename(sys.argv[0])])
+ run.main(['', os.path.basename(sys.argv[0])]
+ sys.argv[1:]
)