Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import wx, base64, cStringIO
- def loadResource(aResource):
- data = base64.b64decode(aResource)
- stream = cStringIO.StringIO(data)
- return wx.BitmapFromImage(wx.ImageFromStream(stream))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement