summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/configdialog.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-08-02 06:37:50 (GMT)
committerGitHub <noreply@github.com>2018-08-02 06:37:50 (GMT)
commitd9fc795487f74531ea43760469cc215858d0d908 (patch)
treea9df63e10deafa4bd6b84088924ec2c91d163a3d /Lib/idlelib/configdialog.py
parent172a81e42bc30da1bd4027db9cd3b6172469f7fe (diff)
downloadcpython-d9fc795487f74531ea43760469cc215858d0d908.zip
cpython-d9fc795487f74531ea43760469cc215858d0d908.tar.gz
cpython-d9fc795487f74531ea43760469cc215858d0d908.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/configdialog.py')
-rw-r--r--Lib/idlelib/configdialog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index c783238..e682ec0 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -191,6 +191,7 @@ class ConfigDialog(Toplevel):
def destroy(self):
global font_sample_text
font_sample_text = self.fontpage.font_sample.get('1.0', 'end')
+ self.grab_release()
super().destroy()
def help(self):