Author wordtech
Recipients eamartin, ned.deily, rhettinger, ronaldoussoren, serhiy.storchaka, taleinat, terry.reedy, vtudorache, walters, wordtech
Date 2018-08-01.03:16:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533093408.89.0.56676864532.issue34120@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-08-01 03:16:48wordtechsetrecipients: + wordtech, rhettinger, terry.reedy, ronaldoussoren, taleinat, ned.deily, serhiy.storchaka, walters, vtudorache, eamartin
2018-08-01 03:16:48wordtechsetmessageid: <1533093408.89.0.56676864532.issue34120@psf.upfronthosting.co.za>
2018-08-01 03:16:48wordtechlinkissue34120 messages
2018-08-01 03:16:48wordtechcreate