[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

Kevin Walzer report at bugs.python.org
Tue Jul 31 23:16:48 EDT 2018


Kevin Walzer <wordtech at users.sourceforge.net> added the comment:

Removing the call "self.grab_set" in configdialog.py (line 87 or so) and help_about.py (line 47 or so) appears to fix the problem with the main window freezing when the modal dialog is destroyed on macOS. "Grab" has never worked properly on Tk on the Mac, but it has additional problems in the Cocoa implementation of Tk; it causes all kinds of problems with the event loop and is best avoided altogether. If the call to grab is crucial on other platforms, it can be wrapped in a call to "tk windowingsystem ne aqua" to exclude the Mac. If other modal dialogs present similar behavior on the Mac, look for calls to grab and try omitting that call. I'll leave it to someone else to propose a thorough patch, but this should point you in the right direction.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34120>
_______________________________________


More information about the Python-bugs-list mailing list