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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy