This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients miss-islington, ned.deily, ronaldoussoren, terry.reedy
Date 2020-11-30.22:30:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
After hours of failure to understand crazy 'impossible' behavior, I went back to 'timing issue' and this code.

    def run_module_event(self, event):
        if macosx.isCocoaTk():
            # Tk-Cocoa in MacOSX is broken until at least
            # Tk 8.5.9, and without this rather
            # crude workaround IDLE would hang when a user
            # tries to run a module using the keyboard shortcut
            # (the menu item works fine).
                lambda: self.editwin.text_frame.event_generate(
            return 'break'
            return self._run_module_event(event)

When I used the Run menu instead of F5, the problem went away.  The problem also went away when I added 'and 0' to the condition above to disable the workaround.  3.8 also works fine with the workaround disabled.  Ned, if you verify enough to agree, I will get rid of the wrapper and remove the leading '_' from the real handler.
Date User Action Args
2020-11-30 22:30:26terry.reedysetrecipients: + terry.reedy, ronaldoussoren, ned.deily, miss-islington
2020-11-30 22:30:26terry.reedysetmessageid: <>
2020-11-30 22:30:26terry.reedylinkissue42508 messages
2020-11-30 22:30:24terry.reedycreate