Código Python:
Ver originalimport wx
class Frame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None)
try:
imageName = "1.jpg"
f = open(imageName, 'rb')
photo = wx.BitmapFromImage(wx.ImageFromStream(f))
wx.StaticBitmap(self, -1, photo)
except IOError:
print "Archivo %s no encontrado" % imageName
raise SystemExit
if __name__ == '__main__':
app = wx.PySimpleApp()
frame = Frame()
frame.Show()
app.MainLoop()