tags:

views:

220

answers:

1

How to show a .png image in a window in wxPython?

+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