8000 Update _backend_tk.py · matplotlib/matplotlib@6c37203 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c37203

Browse files
authored
Update _backend_tk.py
Added reason for change as a comment
1 parent 63de4ed commit 6c37203

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ def __init__(self, canvas, num, window):
473473
self.window.withdraw()
474474
self.set_window_title("Figure %d" % num)
475475
self.canvas = canvas
476+
# packing toolbar first, because if space is getting low, last packed widget is getting shrunk first (-> the canvas)
476477
self.toolbar = self._get_toolbar()
477478
self.canvas._tkcanvas.pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)
478479
self._num = num

0 commit comments

Comments
 (0)
0