import wx app = wx.App(redirect=True) top = wx.Frame(None, title="Hello World", size=(300,200)) top.Show() app.MainLoop()