一、问题
在进行tkinter点击按钮弹出新的界面的时候遇到了下面的问题:
【_tkinter.TclError: image "pyimage2" doesn't exist】

原因是因为这个photoimage只能加载一次,不能再次使用,因此需要的使用另外一种方式来完成界面的跳转。

二、解决
在跳转的界面使用tk.Toplevel()就可以完成界面的跳转

三、结果
Python如何进行有背景图片的界面跳转


四、总结
附上stackflow博主的地址:https://stackoverflow.com/questions/26097811/image-pyimage2-doesnt-exist
问题解答地址:https://stackoverflow.com/questions/20251161/tkinter-tclerror-image-pyimage3-doesnt-exist

相关文章:

  • 2022-12-23
  • 2021-07-02
  • 2021-06-12
  • 2021-12-29
  • 2021-05-14
  • 2021-05-03
  • 2021-05-08
  • 2021-08-06
猜你喜欢
  • 2021-12-27
  • 2021-12-18
  • 2021-09-12
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案