Kaydet (Commit) 87bcc1d6 authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy

Issue #15308: Add 'interrupt execution' (^C) to Shell menu.

Patch by Roger Serwy, updated by Bayard Randel.
üst 63c79966
...@@ -222,6 +222,9 @@ View Last Restart ...@@ -222,6 +222,9 @@ View Last Restart
Restart Shell Restart Shell
Restart the shell to clean the environment. Restart the shell to clean the environment.
Interrupt Execution
Stop a running program.
Debug menu (Shell window only) Debug menu (Shell window only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......
...@@ -67,6 +67,8 @@ menudefs = [ ...@@ -67,6 +67,8 @@ menudefs = [
('shell', [ ('shell', [
('_View Last Restart', '<<view-restart>>'), ('_View Last Restart', '<<view-restart>>'),
('_Restart Shell', '<<restart-shell>>'), ('_Restart Shell', '<<restart-shell>>'),
None,
('_Interrupt Execution', '<<interrupt-execution>>'),
]), ]),
('debug', [ ('debug', [
('_Go to File/Line', '<<goto-file-line>>'), ('_Go to File/Line', '<<goto-file-line>>'),
......
...@@ -161,14 +161,15 @@ Edit ...@@ -161,14 +161,15 @@ Edit
Show surrounding parens # ParenMatch (& Hyperparser) Show surrounding parens # ParenMatch (& Hyperparser)
Shell # PyShell Shell # PyShell
View Last Restart # PyShell.? View Last Restart # PyShell.PyShell.view_restart_mark
Restart Shell # PyShell.? Restart Shell # PyShell.PyShell.restart_shell
Interrupt Execution # pyshell.PyShell.cancel_callback
Debug (Shell only) Debug (Shell only)
Go to File/Line Go to File/Line
Debugger # Debugger, RemoteDebugger Debugger # Debugger, RemoteDebugger, PyShell.toggle_debuger
Stack Viewer # StackViewer Stack Viewer # StackViewer, PyShell.open_stack_viewer
Auto-open Stack Viewer # StackViewer Auto-open Stack Viewer # StackViewer
Format (Editor only) Format (Editor only)
Indent Region Indent Region
......
...@@ -238,6 +238,8 @@ line.</dd> ...@@ -238,6 +238,8 @@ line.</dd>
<dd>Scroll the shell window to the last Shell restart.</dd> <dd>Scroll the shell window to the last Shell restart.</dd>
<dt>Restart Shell</dt> <dt>Restart Shell</dt>
<dd>Restart the shell to clean the environment.</dd> <dd>Restart the shell to clean the environment.</dd>
<dt>Interrupt Execution</dt>
<dd>Stop a running program.</dd>
</dl> </dl>
</div> </div>
<div class="section" id="debug-menu-shell-window-only"> <div class="section" id="debug-menu-shell-window-only">
...@@ -703,7 +705,7 @@ are currently:</p> ...@@ -703,7 +705,7 @@ are currently:</p>
The Python Software Foundation is a non-profit corporation. The Python Software Foundation is a non-profit corporation.
<a href="https://www.python.org/psf/donations/">Please donate.</a> <a href="https://www.python.org/psf/donations/">Please donate.</a>
<br /> <br />
Last updated on Aug 30, 2016. Last updated on Sep 12, 2016.
<a href="../bugs.html">Found a bug</a>? <a href="../bugs.html">Found a bug</a>?
<br /> <br />
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.6. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.6.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment