import wx from main_view import MainFrame class MyApp(wx.App): def OnInit(self): self.frame = MainFrame() self.SetTopWindow(self.frame) self.frame.Show() return True # end of class MyApp if __name__ == "__main__": app = MyApp(0) app.MainLoop()