Beispiel #1
0
 def SetBitmapLabel(self, bitmap, createOthers=True):
     """
     Set the bitmap to display normally.
     This is the only one that is required. If
     createOthers is True, then the other bitmaps
     will be generated on the fly.  Currently,
     only the disabled bitmap is generated.
     """
     self.bmpLabel = bitmap
     if bitmap is not None and createOthers:
         image = wx.ImageFromBitmap(bitmap)
         imageutils.grayOut(image)
         self.SetBitmapDisabled(wx.BitmapFromImage(image))
Beispiel #2
0
 def SetBitmapLabel(self, bitmap, createOthers=True):
     """
     Set the bitmap to display normally.
     This is the only one that is required. If
     createOthers is True, then the other bitmaps
     will be generated on the fly.  Currently,
     only the disabled bitmap is generated.
     """
     self.bmpLabel = bitmap
     if bitmap is not None and createOthers:
         image = wx.ImageFromBitmap(bitmap)
         imageutils.grayOut(image)
         self.SetBitmapDisabled(wx.BitmapFromImage(image))