Closed
Description
Documentation Link
https://matplotlib.org/stable/gallery/user_interfaces/embedding_in_tk_sgskip.html
Problem
Executing the code crashes Spyder
Suggested improvement
Replace this:
button_quit = tkinter.Button(master=root, text="Quit", command=root.quit)
with this:
button_quit = tkinter.Button(master=root, text="Quit", command=root.destroy)
Thanks to StackOverflow.