summaryrefslogtreecommitdiff
path: root/Lib/idlelib/Bindings.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-07-28 22:24:20 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2014-07-28 22:24:20 -0400
commitc95e88cd25499f81aea469c729b998c6cf4bd5b2 (patch)
treebeae87f174500bac6dd4f79947f860488859c52b /Lib/idlelib/Bindings.py
parent6b08235a034b42c9b5bd9408ed64022fcab56ef6 (diff)
parent7e55db2bc566381bfda3ddcd44c048f0c627880f (diff)
downloadcpython-git-c95e88cd25499f81aea469c729b998c6cf4bd5b2.tar.gz
Merge with 3.4
Diffstat (limited to 'Lib/idlelib/Bindings.py')
-rw-r--r--Lib/idlelib/Bindings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/Bindings.py b/Lib/idlelib/Bindings.py
index df2b251426..c9bef217b9 100644
--- a/Lib/idlelib/Bindings.py
+++ b/Lib/idlelib/Bindings.py
@@ -8,6 +8,8 @@ the PythonShell window, and a Format menu which is only present in the Editor
windows.
"""
+from importlib.util import find_spec
+
from idlelib.configHandler import idleConf
# Warning: menudefs is altered in macosxSupport.overrideRootMenu()
@@ -86,4 +88,7 @@ menudefs = [
]),
]
+if find_spec('turtledemo'):
+ menudefs[-1][1].append(('Turtle Demo', '<<open-turtle-demo>>'))
+
default_keydefs = idleConf.GetCurrentKeySet()