parameters: (self, bmp)
docstring: Set the bitmap displayed in the button
          @param bmp: wx.Bitmap
docstring_summary: Set the bitmap displayed in the button
          @param bmp: wx.Bitmap
docstring_tokens: Set the bitmap displayed in the button @param bmp : wx . Bitmap
function: def SetBitmap(self, bmp):
          """Set the bitmap displayed in the button
          @param bmp: wx.Bitmap
  
          """
          self._bmp['enable'] = bmp
          img = bmp.ConvertToImage()
          img = img.ConvertToGreyscale(.795, .073, .026) #(.634, .224, .143)
          self._bmp['disable'] = img.ConvertToBitmap()
          self.InvalidateBestSize()
function_tokens: def SetBitmap ( self , bmp ) : self . _bmp [ 'enable' ] = bmp img = bmp . ConvertToImage ( ) img = img . ConvertToGreyscale ( .795 , .073 , .026 ) #(.634, .224, .143) self . _bmp [ 'disable' ] = img . ConvertToBitmap ( ) self . InvalidateBestSize ( )