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

Skip to content

Commit cbf41ab

Browse files
committed
tk: Don't resize toolbar during resize event.
It is already resized by Tk due to its packing mode, and doing it manually causes the window to grow erratically during resize.
1 parent 84e872d commit cbf41ab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,6 @@ def _get_toolmanager(self):
448448
def resize(self, width, height):
449449
self.canvas._tkcanvas.configure(width=width, height=height)
450450

451-
if self.toolbar is not None:
452-
self.toolbar.configure(width=width)
453-
454451
def show(self):
455452
with _restore_foreground_window_at_end():
456453
if not self._shown:

0 commit comments

Comments
 (0)