bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)

Added missing .grab_release() calls to all places where we call .grab_set().
This commit is contained in:
Tal Einat 2018-08-02 09:18:29 +03:00 committed by GitHub
parent 80b762f010
commit 10ea9409ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 0 deletions

View file

@ -235,10 +235,12 @@ class GetKeysDialog(Toplevel):
return
if (self.advanced or self.KeysOK(keys)) and self.bind_ok(keys):
self.result = keys
self.grab_release()
self.destroy()
def Cancel(self, event=None):
self.result=''
self.grab_release()
self.destroy()
def KeysOK(self, keys):