Showing images is easy with wx.StaticBitmap.
http://www.wxpython.org/docs/api/wx.StaticBitmap-class.html
NOTE:This code is borrowed from the sticky
# show .jpg .png .bmp or .gif image on wx.Panel
import wx
class ImagePanel(wx.Panel):
""" create the panel and put image on it """
def __init__(self, parent, id):
# create the panel, this will be self
wx.Panel.__init__(self, parent, id)
try:
# pick your image file you have in the working folder
# or use the full file path
image_file = 'strawberry.jpg'
bmp = wx.Bitmap(image_file)
# show the bitmap, image's upper left corner anchors
# at panel coordinates (5, 5), default is center
wx.StaticBitmap(self, -1, bmp, (5, 5))
# show some image information
info = "%s %dx%d" % (image_file, bmp.GetWidth(), bmp.GetHeight())
# the parent is the frame
parent.SetTitle(info)
except IOError:
print "Image file %s not found" % imageFile
raise SystemExit
# redirect=False sends stdout/stderr to the console window
# redirect=True sends stdout/stderr to a wx popup window (default)
app = wx.App(redirect=False)
# create window/frame, no parent, -1 is the default ID
# also increase the size of the frame for larger images
frame = wx.Frame(None, -1, size = (480, 320))
# create the panel instance
imp = ImagePanel(frame, -1)
# show the frame
frame.Show(True)
# start the GUI event loop
app.MainLoop()
Hope that helps