]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/BitmapButton.py
decode URIs in wxFileDataObject::SetData(); fixes problem with filenames with spaces...
[wxWidgets.git] / wxPython / demo / BitmapButton.py
index 02d2c618eecee29e94fad9ea0d881721db2e9427..8edea6b5ee10d6e805a223be493db3826ced27cc 100644 (file)
@@ -19,14 +19,14 @@ class TestPanel(wx.Panel):
 
             try:
                 bmp = wx.Bitmap("nosuchfile.bmp", wx.BITMAP_TYPE_BMP)
-                mask = wx.MaskColour(bmp, wx.BLUE)
+                mask = wx.Mask(bmp, wx.BLUE)
             except wx.PyAssertionError:
                 self.log.write("Caught wx.PyAssertionError!  I will fix the problem.\n")
                 bmp = images.getTest2Bitmap()
                 mask = wx.MaskColour(bmp, wx.BLUE)
         else:
             bmp = images.getTest2Bitmap()
-            mask = wx.MaskColour(bmp, wx.BLUE)
+            mask = wx.Mask(bmp, wx.BLUE)
 
         bmp.SetMask(mask)
         b = wx.BitmapButton(self, 30, bmp, (20, 20),