summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ScriptBinding.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-03-28 03:49:14 (GMT)
committerNed Deily <nad@acm.org>2014-03-28 03:49:14 (GMT)
commitb7601676b07c7c8e79af9e7818a783b966612c34 (patch)
tree7a3d48649890a9901747b98df2a9ed13ac13d2db /Lib/idlelib/ScriptBinding.py
parente7d532fbc9c13e00b1e5c6c0db2dba31d1212de7 (diff)
downloadcpython-b7601676b07c7c8e79af9e7818a783b966612c34.zip
cpython-b7601676b07c7c8e79af9e7818a783b966612c34.tar.gz
cpython-b7601676b07c7c8e79af9e7818a783b966612c34.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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py
index 6bfe128..b783637 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -53,7 +53,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):
@@ -114,7 +114,7 @@ class ScriptBinding:
shell.set_warning_stream(saved_stream)
def run_module_event(self, event):
- 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