-# 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-#
import wx
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
def OnPaint (self, e):
+ self.SetBackgroundColour(wx.Colour(0,128,0))
dc = wx.PaintDC(self)
self.PrepareDC(dc)
dc.SetTextForeground(wx.WHITE)
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:])