code: def getIcon( data ):
      
      import cStringIO
      stream = cStringIO.StringIO(data)
      image = wx.ImageFromStream(stream)
      icon = wx.EmptyIcon()
      icon.CopyFromBitmap(wx.BitmapFromImage(image))
      return icon
docs: Return the data from the resource as a wxIcon