summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/textview.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-08-02 07:14:24 (GMT)
committerGitHub <noreply@github.com>2018-08-02 07:14:24 (GMT)
commit9fcfb7b010bd41d4ebaeed372df92b6962253fed (patch)
tree7e4d2bd42adfbc86cc8c307ba6b1b4f9d49d0c38 /Lib/idlelib/textview.py
parent6f16ffc1879fc934eba297b3e81bd940e32a7e03 (diff)
downloadcpython-9fcfb7b010bd41d4ebaeed372df92b6962253fed.zip
cpython-9fcfb7b010bd41d4ebaeed372df92b6962253fed.tar.gz
cpython-9fcfb7b010bd41d4ebaeed372df92b6962253fed.tar.bz2
bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
Added missing .grab_release() calls to all places where we call .grab_set(). (cherry picked from commit 10ea9409ceb5da83cb380b610750551e26561044) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Diffstat (limited to 'Lib/idlelib/textview.py')
-rw-r--r--Lib/idlelib/textview.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/textview.py b/Lib/idlelib/textview.py
index d9260e6..e78e297 100644
--- a/Lib/idlelib/textview.py
+++ b/Lib/idlelib/textview.py
@@ -91,6 +91,7 @@ class ViewWindow(Toplevel):
def ok(self, event=None):
"""Dismiss text viewer dialog."""
+ self.grab_release()
self.destroy()