Exception ignored in: <bound method PhotoImage.
del
of <tkinter.PhotoImage object at 0x0000000014FCFB70>>
Traceback (most recent call last):
File “C:\Python34\lib\tkinter_
init
_.py”, line 3383, in
del
self.tk.call(‘image’, ‘delete’,
self.name
)
RuntimeError: main thread is not in main loop
Exception ignored in: <bound method PhotoImage.
del
of <tkinter.PhotoImage object at 0x0000000015251A58>>
Traceback (most recent call last):
File “C:\Python34\lib\tkinter_
init
_.py”, line 3383, in
del
self.tk.call(‘image’, ‘delete’,
self.name
)
RuntimeError: main thread is not in main loop
Exception ignored in: <bound method PhotoImage.
del
of <tkinter.PhotoImage object at 0x000000001556E940>>
Traceback (most recent call last):
File “C:\Python34\lib\tkinter_
init
_.py”, line 3383, in
del
self.tk.call(‘image’, ‘delete’,
self.name
)
RuntimeError: main thread is not in main loop
Tcl_AsyncDelete: async handler deleted by the wrong thread
解决:
将import matplotlib.pyplot as plt改为: import matplotlib matplotlib.use(‘Agg’) from matplotlib import pyplot as plt 即可
matplotlib
画图出错RuntimeError: main thread is not in main loop
使用pytorch跑网络
报错
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Tcl_AsyncDelete: async handler deleted by the wrong thread
matplotlib
的默认backend是TkAgg,而
Flask项目实战中使用
matplotlib
出现
报错
:set_wakeup_fd only works in main thread of the main interpreter,已
解决
。
问题的核心是,我在下面的代码片段中做错了什么?from tkinter import *from tkinter.ttk import *root = Tk()myButton = Button(root)myImage = PhotoImage(myButton, file='myPicture.gif')myButton.image = myImagemyButton.configure(im...
报错
如下:
Exception ignored in: <bound method Image.__del__ of <tkinter.PhotoImage object at 0x000001B31B4E6470>>
Traceback (most recent call last):
File "C:\Python\Python36\...
Exception ignored in: <bound method PhotoImage.__del__ of <tkinter.PhotoImage object at 0x0000000014FCFB70>>Traceback (most recent call last): File "C:\Python34\lib\tkinter\__init__.py", ...
错误日志:
Exception ignored in: <function Image.del at 0x076BE6A8>
Traceback (most recent call last):
File “C:\Python37\lib\tkinter_init_.py”, line 3508, in del
self....