8000 Kill FigureManagerTk._num. · matplotlib/matplotlib@ffe2081 · GitHub
[go: up one dir, main page]

Skip to content

Commit ffe2081

Browse files
committed
Kill FigureManagerTk._num.
The base class already defines the public .num attribute, let's just use that like every other backend.
1 parent 289130d commit ffe2081

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)
0