Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2132073

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/matplotlib/backends/backend_tkagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_tkagg.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.