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

Skip to content

Commit b6d1d2f

Browse files
committed
applied tk savefig bugfix
svn path=/trunk/matplotlib/; revision=3419
1 parent 2e51d0a commit b6d1d2f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
2007-06-27 Applied Micheal's tk savefig bugfix described at
2+
http://sourceforge.net/tracker/index.php?func=detail&aid=1716732&group_id=80706&atid=560720
3+
Thanks Michael!
4+
5+
16
2007-06-27 Patch for get_py2exe_datafiles() to work with new directory
27
layout. (Thanks Tocer and also Werner Bruhin.) -ADS
38

9+
410
2007-06-27 Added a scroll event to the mpl event handling system and
511
implemented it for backends GTK* -- other backend
612
users/developers/maintainers, please add support for your

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ def destroy(*args):
344344
self.window = None
345345
Gcf.destroy(self._num)
346346

347-
if not self._shown: self.window.bind("<Destroy>", destroy)
348-
347+
#if not self._shown: self.window.bind("<Destroy>", destroy)
348+
if not self._shown: self.canvas._tkcanvas.bind("<Destroy>")
349349
_focus = windowing.FocusManager()
350350
if not self._shown:
351351
self.window.deiconify()

0 commit comments

Comments
 (0)