Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3dad1a5

Browse files
committed
Merge 3.5 - Issue #15308: Add 'interrupt execution' (^C) to Shell menu.
Patch by Roger Serwy, updated by Bayard Randel.
2 parents 8805717 + 4b73676 commit 3dad1a5

7 files changed

Lines changed: 58 additions & 25 deletions

File tree

Doc/library/idle.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ View Last Restart
226226
Restart Shell
227227
Restart the shell to clean the environment.
228228

229+
Interrupt Execution
230+
Stop a running program.
231+
229232
Debug menu (Shell window only)
230233
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
231234

Lib/idlelib/NEWS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ What's New in IDLE 3.6.0?
22
===========================
33
*Release date: 2016-12-16?*
44

5+
- Issue #15308: Add 'interrupt execution' (^C) to Shell menu.
6+
Patch by Roger Serwy, updated by Bayard Randel.
7+
58
- Issue #27922: Stop IDLE tests from 'flashing' gui widgets on the screen.
69

710
- Issue #27891: Consistently group and sort imports within idlelib modules.

Lib/idlelib/README.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,14 @@ Edit
160160
Show surrounding parens # parenmatch (& Hyperparser)
161161

162162
Shell # pyshell
163-
View Last Restart# pyshell.?
164-
Restart Shell # pyshell.?
163+
View Last Restart # pyshell.PyShell.view_restart_mark
164+
Restart Shell # pyshell.PyShell.restart_shell
165+
Interrupt Execution # pyshell.PyShell.cancel_callback
165166

166167
Debug (Shell only)
167168
Go to File/Line
168-
debugger # debugger, debugger_r
169-
Stack Viewer # stackviewer
169+
debugger # debugger, debugger_r, PyShell.toggle_debuger
170+
Stack Viewer # stackviewer, PyShell.open_stack_viewer
170171
Auto-open Stack Viewer # stackviewer
171172

172173
Format (Editor only)

Lib/idlelib/help.html

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,21 @@ <h3>Navigation</h3>
6565

6666
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
6767
<li class="nav-item nav-item-2"><a href="tk.html" accesskey="U">25. Graphical User Interfaces with Tk</a> &raquo;</li>
68+
<li class="right">
69+
70+
71+
<div class="inline-search" style="display: none" role="search">
72+
<form class="inline-search" action="../search.html" method="get">
73+
<input placeholder="Quick search" type="text" name="q" />
74+
<input type="submit" value="Go" />
75+
<input type="hidden" name="check_keywords" value="yes" />
76+
<input type="hidden" name="area" value="default" />
77+
</form>
78+
</div>
79+
<script type="text/javascript">$('.inline-search').show(0);</script>
80+
|
81+
</li>
82+
6883
</ul>
6984
</div>
7085

@@ -240,6 +255,8 @@ <h3>25.5.1.5. Shell menu (Shell window only)<a class="headerlink" href="#shell-m
240255
<dd>Scroll the shell window to the last Shell restart.</dd>
241256
<dt>Restart Shell</dt>
242257
<dd>Restart the shell to clean the environment.</dd>
258+
<dt>Interrupt Execution</dt>
259+
<dd>Stop a running program.</dd>
243260
</dl>
244261
</div>
245262
<div class="section" id="debug-menu-shell-window-only">
@@ -649,26 +666,14 @@ <h4>Previous topic</h4>
649666
<h4>Next topic</h4>
650667
<p class="topless"><a href="othergui.html"
651668
title="next chapter">25.6. Other Graphical User Interface Packages</a></p>
652-
<h3>This Page</h3>
653-
<ul class="this-page-menu">
654-
<li><a href="../bugs.html">Report a Bug</a></li>
655-
<li><a href="../_sources/library/idle.txt"
656-
rel="nofollow">Show Source</a></li>
657-
</ul>
658-
659-
<div id="searchbox" style="display: none" role="search">
660-
<h3>Quick search</h3>
661-
<form class="search" action="../search.html" method="get">
662-
<input type="text" name="q" />
663-
<input type="submit" value="Go" />
664-
<input type="hidden" name="check_keywords" value="yes" />
665-
<input type="hidden" name="area" value="default" />
666-
</form>
667-
<p class="searchtip" style="font-size: 90%">
668-
Enter search terms or a module, class or function name.
669-
</p>
670-
</div>
671-
<script type="text/javascript">$('#searchbox').show(0);</script>
669+
<div role="note" aria-label="source link">
670+
<h3>This Page</h3>
671+
<ul class="this-page-menu">
672+
<li><a href="../bugs.html">Report a Bug</a></li>
673+
<li><a href="../_sources/library/idle.txt"
674+
rel="nofollow">Show Source</a></li>
675+
</ul>
676+
</div>
672677
</div>
673678
</div>
674679
<div class="clearer"></div>
@@ -697,6 +702,21 @@ <h3>Navigation</h3>
697702

698703
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
699704
<li class="nav-item nav-item-2"><a href="tk.html" >25. Graphical User Interfaces with Tk</a> &raquo;</li>
705+
<li class="right">
706+
707+
708+
<div class="inline-search" style="display: none" role="search">
709+
<form class="inline-search" action="../search.html" method="get">
710+
<input placeholder="Quick search" type="text" name="q" />
711+
<input type="submit" value="Go" />
712+
<input type="hidden" name="check_keywords" value="yes" />
713+
<input type="hidden" name="area" value="default" />
714+
</form>
715+
</div>
716+
<script type="text/javascript">$('.inline-search').show(0);</script>
717+
|
718+
</li>
719+
700720
</ul>
701721
</div>
702722
<div class="footer">
@@ -705,7 +725,7 @@ <h3>Navigation</h3>
705725
The Python Software Foundation is a non-profit corporation.
706726
<a href="https://www.python.org/psf/donations/">Please donate.</a>
707727
<br />
708-
Last updated on Aug 30, 2016.
728+
Last updated on Sep 12, 2016.
709729
<a href="../bugs.html">Found a bug</a>?
710730
<br />
711731
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.6.

Lib/idlelib/mainmenu.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
('shell', [
7070
('_View Last Restart', '<<view-restart>>'),
7171
('_Restart Shell', '<<restart-shell>>'),
72+
None,
73+
('_Interrupt Execution', '<<interrupt-execution>>'),
7274
]),
7375
('debug', [
7476
('_Go to File/Line', '<<goto-file-line>>'),

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,7 @@ Burton Radons
12091209
Abhilash Raj
12101210
Shorya Raj
12111211
Jeff Ramnani
1212+
Bayard Randel
12121213
Varpu Rantala
12131214
Brodie Rao
12141215
Rémi Rampin

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ Library
379379
IDLE
380380
----
381381

382+
- Issue #15308: Add 'interrupt execution' (^C) to Shell menu.
383+
Patch by Roger Serwy, updated by Bayard Randel.
384+
382385
- Issue #27922: Stop IDLE tests from 'flashing' gui widgets on the screen.
383386

384387
- Issue #27891: Consistently group and sort imports within idlelib modules.

0 commit comments

Comments
 (0)