Skip to content

Commit 9d25441

Browse files
OceanWolftacaswell
authored andcommitted
Better destroy order.
1 parent ebf0c57 commit 9d25441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backend_managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def _destroy(self, event=None):
7878
self._callbacks.process(s, event)
7979

8080
def destroy(self, *args):
81-
self.window.destroy()
8281
self.canvas.destroy()
8382
if self.toolbar:
8483
self.toolbar.destroy()
84+
self.window.destroy()
8585

8686
self.mainloop.__del__()
8787

0 commit comments

Comments
 (0)