Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59d71e4

Browse files
authored
Merge pull request #15235 from anntzer/tknum
Kill FigureManagerTk._num.
2 parents d576e3a + ffe2081 commit 59d71e4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ def __init__(self, canvas, num, window):
432432
# widget is getting shrunk first (-> the canvas)
433433
self.toolbar = self._get_toolbar()
434434
self.canvas._tkcanvas.pack(side=tk.TOP, fill=tk.BOTH, expand=1)
435-
self._num = num
436435

437436
self.statusbar = None
438437

@@ -471,7 +470,7 @@ def show(self):
471470
if not self._shown:
472471
def destroy(*args):
473472
self.window = None
474-
Gcf.destroy(self._num)
473+
Gcf.destroy(self.num)
475474
self.canvas._tkcanvas.bind("<Destroy>", destroy)
476475
self.window.deiconify()
477476
else:

0 commit comments

Comments
 (0)