def change_section_to_main(): APP_MAIN_FRAME.pack() 我想恢复小工具"APP_MAIN_FRAME我以为我可以用pack()来做,结果我错了。我一直收到这个错误>> _tkinter.TclError: bad window path name ".!frame
, text="MERCURY",command=mercInfo)当你按下一个按钮,它应该改变图像。当我单击水银按钮时,会出现以下错误:NameError: global name 'img1' is not definedvenus.pack(side=TOP)
earth = Button(buttonFrame