From 10ea9409ceb5da83cb380b610750551e26561044 Mon Sep 17 00:00:00 2001 From: Tal Einat Date: Thu, 2 Aug 2018 09:18:29 +0300 Subject: bpo-34120: fix IDLE freezing after closing dialogs (GH-8603) Added missing .grab_release() calls to all places where we call .grab_set(). --- Lib/idlelib/query.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/idlelib/query.py') diff --git a/Lib/idlelib/query.py b/Lib/idlelib/query.py index 15add6d127..c2628cceb7 100644 --- a/Lib/idlelib/query.py +++ b/Lib/idlelib/query.py @@ -143,6 +143,10 @@ class Query(Toplevel): self.result = None self.destroy() + def destroy(self): + self.grab_release() + super().destroy() + class SectionName(Query): "Get a name for a config file section name." -- cgit v1.2.1