mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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:
parent
80b762f010
commit
10ea9409ce
6 changed files with 10 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue