Can anyone please point me to a resource that will help me get an icon from blob in wx.python
I can do it from a file
ico = wx.Icon('bfgIcon.ico', wx.BITMAP_TYPE_ICO)
self.SetIcon(ico)
but I cannot seem to find the correct way of doing it from an sql blob. I've tried
row=uc.Users().GeneralImageRow('bfgLogo')
stream=wx.InputStream(StringIO(row[1]))
image=stream.GetIcon()
self.SetIcon(image)
but I've clearly got the object architecture wrong
Can anyone please help?
Aucun commentaire:
Enregistrer un commentaire