#_author:来童星#date:2019/12/20#创建一个wx.App的子类import wxclass App(wx.App): #初始化方法 def OnInit(self): frame=wx.Frame(parent=None,title='hello wxpython')# 创建窗口 frame.Show()# 显示窗口 return Trueif __name__=='__main__': app=App()# 创建App类的实例 app.MainLoop()