Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI: Fix toolbar error when changing reconciliation boolean options (#…
…224) Problem: the matplotlib toolbar could not be deleted properly, so it raises an exception. This is because when we update the toolbar for the "one per reconciliation windows," it creates a new toolbar using the code ```python toolbar = NavigationToolbar2Tk(self.canvas, self.frame) ``` This toolbar variable disappears after the update function finishes. However, when we remove the toolbar, we call `self.toolbar.destroy()`. Solution: tie the toolbar variable to self at creation ```python self.toolbar = NavigationToolbar2Tk(self.canvas, self.frame) ``` Tested on macOS Catalina 10.15.5, can check/uncheck boolean options in #223 correctly.
- Loading branch information