I need to add httpd support to this sample wxpython code.
It parses the url and display different images.
What's the easiest way to do this?
import wx
a = wx.PySimpleApp()
wximg = wx.Image('w.png',wx.BITMAP_TYPE_PNG)
wxbmp=wximg.ConvertToBitmap()
f = wx.Frame(None, -1, "Show JPEG demo")
f.SetSize( wxbmp.GetSize() )
wx.StaticBitmap(f,-1,wxbmp,(0,0))
f.Show(True)
def callback(evt,a=a,f=f):
# Closes the window upon any keypress
f.Close()
a.ExitMainLoop()
wx.EVT_CHAR(f,callback)
a.MainLoop()