How to show a .png
image in a window in wxPython?
views:
220answers:
1
+2
A:
Short answer:
png = wx.Image(imageFile, wx.BITMAP_TYPE_ANY).ConvertToBitmap()
wx.StaticBitmap(self, -1, png, (10, 5), (png.GetWidth(), png.GetHeight()))
Longer sample: http://www.daniweb.com/code/snippet337.html
Ned Batchelder
2009-08-22 12:49:29