diff options
Diffstat (limited to 'Lib/idlelib/Bindings.py')
-rw-r--r-- | Lib/idlelib/Bindings.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/Bindings.py b/Lib/idlelib/Bindings.py index df2b251..c9bef21 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() |