8000 Better destroy order. · matplotlib/matplotlib@e64aaf2 · GitHub
[go: up one dir, main page]

Skip to content

Commit e64aaf2

Browse files
committed
Better destroy order.
1 parent c36a253 commit e64aaf2

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
@@ -63,10 +63,10 @@ def _destroy(self, event=None):
6363
self._callbacks.process(s, event)
6464

6565
def destroy(self, *args):
66-
self.window.destroy()
6766
self.canvas.destroy()
6867
if self.toolbar:
6968
self.toolbar.destroy()
69+
self.window.destroy()
7070

7171
self.mainloop.__del__()
7272

0 commit comments

Comments
 (0)
0