You have some lines indented incorrectly. Try: from wxPython.wx import * class MyApp(wxApp): def OnInit(self): frame = wxFrame(NULL, -1, "Hello World") frame.Show(true) self.SetTopWindow(frame) return true app = MyApp(0) app.MainLoop() ## Jason Orendorff http://www.jorendorff.com/