You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tkinter is a fact, not necessarily a feature.
Reorganize editor key bindings in a logical order
and remove those that do not work, at least on Windows.
Improve shell bindings list.
Copy file name to clipboardExpand all lines: Lib/idlelib/help.html
+28-38Lines changed: 28 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,6 @@ <h3>Navigation</h3>
226
226
<p>IDLE is Python’s Integrated Development and Learning Environment.</p>
227
227
<p>IDLE has the following features:</p>
228
228
<ulclass="simple">
229
-
<li><p>coded in 100% pure Python, using the <aclass="reference internal" href="tkinter.html#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">tkinter</span></code></a> GUI toolkit</p></li>
230
229
<li><p>cross-platform: works mostly the same on Windows, Unix, and macOS</p></li>
231
230
<li><p>Python shell window (interactive interpreter) with colorizing
232
231
of code input, output, and error messages</p></li>
<h3>Key bindings<aclass="headerlink" href="#key-bindings" title="Permalink to this heading">¶</a></h3>
550
-
<p>In this section, ‘C’ refers to the <kbdclass="kbd docutils literal notranslate">Control</kbd> key on Windows and Unix and
551
-
the <kbdclass="kbd docutils literal notranslate">Command</kbd> key on macOS.</p>
549
+
<p>The IDLE insertion cursor is a thin vertical bar between character
550
+
positions. When characters are entered, the insertion cursor and
551
+
everything to its right moves right one character and
552
+
the new character is entered in the new space.</p>
553
+
<p>Several non-character keys move the cursor and possibly
554
+
delete characters. Deletion does not puts text on the clipboard,
555
+
but IDLE has an undo list. Wherever this doc discusses keys,
556
+
‘C’ refers to the <kbdclass="kbd docutils literal notranslate">Control</kbd> key on Windows and
557
+
Unix and the <kbdclass="kbd docutils literal notranslate">Command</kbd> key on macOS. (And all such dicussions
558
+
assume that the keys have not been re-bound to something else.)</p>
552
559
<ulclass="simple">
553
-
<li><p><kbdclass="kbd docutils literal notranslate">Backspace</kbd> deletes to the left; <kbdclass="kbd docutils literal notranslate">Del</kbd> deletes to the right</p></li>
554
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">Backspace</kbd></kbd> delete word left; <kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">Del</kbd></kbd> delete word to the right</p></li>
555
-
<li><p>Arrow keys and <kbdclass="kbd docutils literal notranslate">Page Up</kbd>/<kbdclass="kbd docutils literal notranslate">Page Down</kbd> to move around</p></li>
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">e</kbd></kbd> end of line</p></li>
563
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">k</kbd></kbd> kill line (but doesn’t put it in clipboard)</p></li>
564
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">l</kbd></kbd> center window around the insertion point</p></li>
565
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">b</kbd></kbd> go backward one character without deleting (usually you can
566
-
also use the cursor key for this)</p></li>
567
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">f</kbd></kbd> go forward one character without deleting (usually you can
568
-
also use the cursor key for this)</p></li>
569
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">p</kbd></kbd> go up one line (usually you can also use the cursor key for
<li><p>Arrow keys move the cursor one character or line.</p></li>
561
+
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">LeftArrow</kbd></kbd> and <kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">RightArrow</kbd></kbd> moves left or right one word.</p></li>
562
+
<li><p><kbdclass="kbd docutils literal notranslate">Home</kbd> and <kbdclass="kbd docutils literal notranslate">End</kbd> go to the beginning or end of the line.</p></li>
563
+
<li><p><kbdclass="kbd docutils literal notranslate">Page Up</kbd> and <kbdclass="kbd docutils literal notranslate">Page Down</kbd> go up or down one screen.</p></li>
564
+
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">Home</kbd></kbd> and <kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">End</kbd></kbd> go to beginning or end of the file.</p></li>
565
+
<li><p><kbdclass="kbd docutils literal notranslate">Backspace</kbd> and <kbdclass="kbd docutils literal notranslate">Del</kbd> (or <cite>C-d</cite>) delete the previous or
566
+
next character.</p></li>
567
+
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">Backspace</kbd></kbd> and <kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">Del</kbd></kbd> delete one word left or right.</p></li>
568
+
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">k</kbd></kbd> deletes (‘kills’) everything to the right.</p></li>
574
569
</ul>
575
570
<p>Standard keybindings (like <kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">c</kbd></kbd> to copy and <kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">v</kbd></kbd> to paste)
576
571
may work. Keybindings are selected in the Configure IDLE dialog.</p>
@@ -697,20 +692,15 @@ <h3>Shell window<a class="headerlink" href="#shell-window" title="Permalink to t
697
692
when one requests a restart on the Shell menu, or when one runs code
698
693
in an editor window.</p>
699
694
<p>The editing features described in previous subsections work when entering
700
-
code interactively. IDLE’s Shell window also responds to the following keys.</p>
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">C</kbd>-<kbdclass="kbd docutils literal notranslate">d</kbd></kbd> sends end-of-file; closes window if typed at a <codeclass="docutils literal notranslate"><spanclass="pre">>>></span></code> prompt</p></li>
704
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">Alt</kbd>-<kbdclass="kbd docutils literal notranslate">/</kbd></kbd> (Expand word) is also useful to reduce typing</p>
705
-
<p>Command history</p>
695
+
code interactively. IDLE’s Shell window also responds to the following:</p>
706
696
<ulclass="simple">
707
-
<li><p><kbdclass="kbd compound docutils literal notranslate"><kbdclass="kbd docutils literal notranslate">Alt</kbd>-<kbdclass="kbd docutils literal notranslate">p</kbd></kbd>retrieves previous command matching what you have typed. On
0 commit comments