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

Skip to content

Commit 87fde92

Browse files
committed
Deprecate passing event to FigureManagerTkAgg.resize.
1 parent 77d9500 commit 87fde92

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ def resize(self, width, height=None):
536536

537537
# when a single parameter is given, consider it as a event
538538
if height is None:
539+
cbook.warn_deprecated("2.2", "FigureManagerTkAgg.resize now takes "
540+
"width and height as separate arguments")
539541
width = width.width
540542
else:
541543
self.canvas._tkcanvas.master.geometry("%dx%d" % (width, height))

0 commit comments

Comments
 (0)