Tkinter pyimage doesn't exist

后端 未结 2 855
栀梦
栀梦 2020-12-11 04:54

I know there are lot of similar questions, but there aren\'t any simple enough that I am able to understand. I have the following code:

import Tkinter as tk
         


        
相关标签:
2条回答
  • 2020-12-11 05:16

    I had the same error message when using spyder 3.3.6 the only way i could get the .png file to load and display after getting the 'Tinker pyimage error ' was to go to the Console and restart the kernel. After that i worked fine.

    0 讨论(0)
  • 2020-12-11 05:19

    Figured it out. For some reason, while running in the debugger, if any previous executions had thrown errors I get the "pyimage doesn't exist" error. However, if I restart the debugger (or no previously executed scripts have thrown errors), then the program runs fine.

    0 讨论(0)
提交回复
热议问题