diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index ffe8426..a629bc5 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -226,6 +226,9 @@ View Last Restart Restart Shell Restart the shell to clean the environment. +Interrupt Execution + Stop a running program. + Debug menu (Shell window only) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/Lib/idlelib/README.txt b/Lib/idlelib/README.txt index a879c17..e12e03f 100644 --- a/Lib/idlelib/README.txt +++ b/Lib/idlelib/README.txt @@ -160,8 +160,9 @@ Edit Show surrounding parens # parenmatch (& Hyperparser) Shell # pyshell - View Last Restart# pyshell.? - Restart Shell # pyshell.? + View Last Restart # pyshell.? + Restart Shell # pyshell.? + Interrupt Execution # pyshell.? Debug (Shell only) Go to File/Line diff --git a/Lib/idlelib/mainmenu.py b/Lib/idlelib/mainmenu.py index 965ada3..65345cd 100644 --- a/Lib/idlelib/mainmenu.py +++ b/Lib/idlelib/mainmenu.py @@ -69,6 +69,8 @@ menudefs = [ ('shell', [ ('_View Last Restart', '<>'), ('_Restart Shell', '<>'), + None, + ('_Interrupt Execution', '<>'), ]), ('debug', [ ('_Go to File/Line', '<>'),