diff options
author | Ned Deily <nad@acm.org> | 2014-03-28 03:47:04 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-03-28 03:47:04 (GMT) |
commit | 57847df4e59015c141e645b47112829cf41b582a (patch) | |
tree | 957c78b3e8217ee5ab75e5ae488c85dc40d7349c /Lib/idlelib/ScriptBinding.py | |
parent | b693e9fc5bed8c8375e47a2f189931a4faece30f (diff) | |
download | cpython-57847df4e59015c141e645b47112829cf41b582a.zip cpython-57847df4e59015c141e645b47112829cf41b582a.tar.gz cpython-57847df4e59015c141e645b47112829cf41b582a.tar.bz2 |
Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index a024ebf..ab2a3f2 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -54,7 +54,7 @@ class ScriptBinding: self.flist = self.editwin.flist self.root = self.editwin.root - if macosxSupport.runningAsOSXApp(): + if macosxSupport.isCocoaTk(): self.editwin.text_frame.bind('<<run-module-event-2>>', self._run_module_event) def check_module_event(self, event): @@ -168,7 +168,7 @@ class ScriptBinding: interp.runcode(code) return 'break' - if macosxSupport.runningAsOSXApp(): + if macosxSupport.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 |