Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doc]: Tk embedding example crashes Spyder #23334

Closed
@igurin-invn

Description

@igurin-invn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationGood first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions