| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This works for me (and I can confirm the original bug).
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In using matplotlib (after PR #9356) on PyPy, I ran into an issue that the TkAGG SubplotTool python object was being collected by the PyPy garbage collector (GC). It turns out that the SubplotTool holds circular references, and these are resolved in the CPython GC much much later than in PyPy. I also noticed that the SubPlotTool on TkAGG is not a modal window, I can open many at the same time.
PR Summary
This pull request solves both problems: holds a reference to the SubplotTool and makes the dialog into a modal dialog.
Here is code that provides a basis for a manual test, I am not sure how to test the modality of a dialog box via a unittest:
import matplotlib matplotlib.use('TkAgg') from matplotlib import pylab fig = pylab.plot(range(10)) pylab.show() # press the subplot button in the toolbar # try to press the button again, the SubplotTool dialog should hold focus # make sure the SubplotTool is functioning, that the sliders affect the main windowPR Checklist