import wxclass MyApp(wx.App): def OnInit(self): wx.MessageBox("Hello wxPython", "wxApp") return Trueif __name__ == "__main__": app = MyApp(False) app.MainLoop()