]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/StaticBitmap.py
reSWIGged
[wxWidgets.git] / wxPython / demo / StaticBitmap.py
index e6492edc15b157f51e3c74f07e9e253b7c221fb4..d45f28b9cd59fe59c26c0ed19f07beb03100ff39 100644 (file)
@@ -13,7 +13,7 @@ class TestPanel(wx.Panel):
         wx.StaticText(self, -1, "This is a wx.StaticBitmap.", (45, 15))
 
         bmp = images.getTest2Bitmap()
-        mask = wx.MaskColour(bmp, wx.BLUE)
+        mask = wx.Mask(bmp, wx.BLUE)
         bmp.SetMask(mask)
         wx.StaticBitmap(self, -1, bmp, (80, 50), (bmp.GetWidth(), bmp.GetHeight()))
 
@@ -44,4 +44,4 @@ A bitmap can be derived from most image formats using the wx.Image class.
 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:])