Message322837
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. |
|
Date |
User |
Action |
Args |
2018-08-01 03:16:48 | wordtech | set | recipients:
+ wordtech, rhettinger, terry.reedy, ronaldoussoren, taleinat, ned.deily, serhiy.storchaka, walters, vtudorache, eamartin |
2018-08-01 03:16:48 | wordtech | set | messageid: <1533093408.89.0.56676864532.issue34120@psf.upfronthosting.co.za> |
2018-08-01 03:16:48 | wordtech | link | issue34120 messages |
2018-08-01 03:16:48 | wordtech | create | |
|