[2.7] bpo-34120: fix IDLE freezing after closing dialogs (GH-8603) by taleinat · Pull Request #8614 · python/cpython

Expand Up @@ -39,7 +39,8 @@ def __init__(self, parent, title, text, modal=True, _htest=False): self.textView.insert(0.0, text) self.textView.config(state=DISABLED)
if modal: self.is_modal = modal if self.is_modal: self.transient(parent) self.grab_set() self.wait_window() Expand All @@ -62,6 +63,8 @@ def CreateWidgets(self): frameText.pack(side=TOP,expand=TRUE,fill=BOTH)
def Ok(self, event=None): if self.is_modal: self.grab_release() self.destroy()

Expand Down