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

Skip to content

Commit 2132073

Browse files
authored
Merge pull request #9956 from mattip/tkagg-issue9856
BUG: clear events before destroying windows in tkagg
2 parents 8f3df28 + f5044af commit 2132073

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def __init__(self, figure, master=None, resize_callback=None):
208208
# to the window and filter.
209209
def filter_destroy(evt):
210210
if evt.widget is self._tkcanvas:
211+
self._master.update_idletasks()
211212
self.close_event()
212213
root.bind("<Destroy>", filter_destroy, "+")
213214

0 commit comments

Comments
 (0)