X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..a400c2ec04f77b3a72d23cb2b122866f3fddfd45:/wxPython/demo/Mask.py?ds=sidebyside diff --git a/wxPython/demo/Mask.py b/wxPython/demo/Mask.py index 0af29a3761..149019ca72 100644 --- 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_themask = wx.BitmapFromImage(images.getTestMaskImage(), 1) + self.bmp_themask = images.getTestMaskBitmap() mask = wx.Mask(self.bmp_themask) # set the mask on our bitmap @@ -58,6 +58,7 @@ class TestMaskWindow(wx.ScrolledWindow): def OnPaint (self, e): + self.SetBackgroundColour(wx.Colour(0,128,0)) dc = wx.PaintDC(self) self.PrepareDC(dc) dc.SetTextForeground(wx.WHITE) @@ -127,5 +128,5 @@ Context (dc) Blit() method's logic codes. 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:])