|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- Exception in Tkinter callback
- Traceback (most recent call last):
- File "C:\\Users\\Charlie\\AppData\\Local\\Programs\\Python\\Python38\\lib\\tkinter\\__in
- it__.py", line 1883, in __call__
- return self.func(*args)
- File "D:\\my.code\\小甲鱼.py", line 26, in sleep
- imgLabel = Label(root, image=photo)
- File "C:\\Users\\Charlie\\AppData\\Local\\Programs\\Python\\Python38\\lib\\tkinter\\__in
- it__.py", line 3143, in __init__
- Widget.__init__(self, master, 'label', cnf, kw)
- File "C:\\Users\\Charlie\\AppData\\Local\\Programs\\Python\\Python38\\lib\\tkinter\\__in
- it__.py", line 2567, in __init__
- self.tk.call(
- _tkinter.TclError: image "pyimage2" doesn't exist
复制代码
发完整代码吧,你这里错误应该是代码中存在多个 Tk() 根窗口 ,或者 mainloop() 了
|
|