运行一次 app.Mainlop()
后,再次运行,报错:The wx.App object must be created first!
原因:idle中wx Mainloop()
与 Tkinter
冲突
解决办法:
1. 关闭原来的文件,重新打开
2. 文末加一句: del app
运行一次 app.Mainlop()
后,再次运行,报错:The wx.App object must be created first!
原因:idle中wx Mainloop()
与 Tkinter
冲突
解决办法:
1. 关闭原来的文件,重新打开
2. 文末加一句: del app