#program1.py import wx class MyFrame(wx.Frame): def __init__ (self,parent,id,title): wx.Frame.__init__(self,parent,id,title,size=(400,200)) self.CenterOnScreen() self.CreateStatusBar() self.SetStatusText("Status Bar") class MyApp(wx.App): def OnInit(self): frame=MyFrame(None,-1,"Hello World") frame.Show(True) self.SetTopWindow(frame) return True app=MyApp(0) app.MainLoop() #layout1.py class MyFrame(wx.Frame): def __init__ (self,parent,id,title): wx.Frame.__init__(self,parent,id,title,size=(400,200)) self.CenterOnScreen() self.CreateStatusBar() self.SetStatusText("Status Bar") #program2.py import wx import layout1 class MyApp(wx.App): def OnInit(self): frame=MyFrame(None,-1,"Hello World") frame.Show(True) self.SetTopWindow(frame) return True app=MyApp(0) app.MainLoop()