Traceback (most recent call last):


 ".\gui.py", line 59, in <module>

tkagg.blit(photo, figure_canvas_agg.get_renderer()._renderer, colormode=2)


 "C:\Program 
s\Python37\lib\site-packages\matplotlib\backends\tkagg.py", line 28, in blit

except tk.TclError:
AttributeError: '_tkinter.tkapp' object has no attribute 'TclError'

Traceback (most recent call last):


 "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'prepare'
