-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird interaction with Tkinter #10239
Comments
I am not surprised if there are issues as you are trying to run two different GUI frameworks. If you do |
the -to was failing with Gemma's installation due to a Tkinter issue (see matplotlib/matplotlib#10239) Making the tkinter instance master = Tk() immediately after importing tkinter fixed the problem
The link below gives really good code on how to combine matplotlib and tkinter - https://pythonprogramming.net/how-to-embed-matplotlib-graph-tkinter-gui/ And what @tacaswell is saying is right. That line is the backend for matplotlib which gives it the functionality to work together with tkinter |
I'm going to close this as it's been 10 months without a response from the reporter. Please comment if there is still an issue. |
Using matplotlib.use('tkagg') |
Bug report
Bug summary
Importing matplotlib before creating a Tk instance causes a crash.
Code for reproduction
Bad:
Ok:
Actual outcome
Expected outcome
Too obvious to need to describe.
Matplotlib version
The text was updated successfully, but these errors were encountered: