]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Mask.py
A way to make the DC classes in wxPython look like the ones in 2.5, so
[wxWidgets.git] / wxPython / demo / Mask.py
index cf7123cb8fc69c4df26e03620c13d903a3bb8132..149019ca72887c7a6a94a5fef9847e569f53472e 100644 (file)
@@ -58,6 +58,7 @@ class TestMaskWindow(wx.ScrolledWindow):
 
 
     def OnPaint (self, e):
 
 
     def OnPaint (self, e):
+        self.SetBackgroundColour(wx.Colour(0,128,0))
         dc = wx.PaintDC(self)
         self.PrepareDC(dc)
         dc.SetTextForeground(wx.WHITE)
         dc = wx.PaintDC(self)
         self.PrepareDC(dc)
         dc.SetTextForeground(wx.WHITE)
@@ -127,5 +128,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:])