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
<p>See also the indent/dedent region commands in the edit menu.</p>
446
447
</div>
447
448
<divclass="section" id="completions">
448
-
<h3>Completions<aclass="headerlink" href="#completions" title="Permalink to this headline">¶</a></h3>
449
+
<spanid="id3"></span><h3>Completions<aclass="headerlink" href="#completions" title="Permalink to this headline">¶</a></h3>
449
450
<p>Completions are supplied for functions, classes, and attributes of classes,
450
451
both built-in and user-defined. Completions are also provided for
451
452
filenames.</p>
@@ -480,7 +481,7 @@ <h3>Completions<a class="headerlink" href="#completions" title="Permalink to thi
480
481
longer or disable the extension.</p>
481
482
</div>
482
483
<divclass="section" id="calltips">
483
-
<h3>Calltips<aclass="headerlink" href="#calltips" title="Permalink to this headline">¶</a></h3>
484
+
<spanid="id4"></span><h3>Calltips<aclass="headerlink" href="#calltips" title="Permalink to this headline">¶</a></h3>
484
485
<p>A calltip is shown when one types <kbdclass="kbd docutils literal notranslate">(</kbd> after the name of an <em>accessible</em>
485
486
function. A name expression may include dots and subscripts. A calltip
486
487
remains until it is clicked, the cursor is moved out of the argument area,
@@ -502,6 +503,21 @@ <h3>Calltips<a class="headerlink" href="#calltips" title="Permalink to this head
502
503
might want to run a file after writing the import statements at the top,
503
504
or immediately run an existing file before editing.</p>
504
505
</div>
506
+
<divclass="section" id="code-context">
507
+
<spanid="id5"></span><h3>Code Context<aclass="headerlink" href="#code-context" title="Permalink to this headline">¶</a></h3>
508
+
<p>Within an editor window containing Python code, code context can be toggled
509
+
in order to show or hide a pane at the top of the window. When shown, this
510
+
pane freezes the opening lines for block code, such as those beginning with
511
+
<codeclass="docutils literal notranslate"><spanclass="pre">class</span></code>, <codeclass="docutils literal notranslate"><spanclass="pre">def</span></code>, or <codeclass="docutils literal notranslate"><spanclass="pre">if</span></code> keywords, that would have otherwise scrolled
512
+
out of view. The size of the pane will be expanded and contracted as needed
513
+
to show the all current levels of context, up to the maximum number of
514
+
lines defined in the Configure IDLE dialog (which defaults to 15). If there
515
+
are no current context lines and the feature is toggled on, a single blank
516
+
line will display. Clicking on a line in the context pane will move that
517
+
line to the top of the editor.</p>
518
+
<p>The text and background colors for the context pane can be configured under
519
+
the Highlights tab in the Configure IDLE dialog.</p>
520
+
</div>
505
521
<divclass="section" id="python-shell-window">
506
522
<h3>Python Shell window<aclass="headerlink" href="#python-shell-window" title="Permalink to this headline">¶</a></h3>
507
523
<p>With IDLE’s Shell, one enters, edits, and recalls complete statements.
@@ -733,7 +749,7 @@ <h3>Running without a subprocess<a class="headerlink" href="#running-without-a-s
733
749
<divclass="section" id="help-and-preferences">
734
750
<h2>Help and preferences<aclass="headerlink" href="#help-and-preferences" title="Permalink to this headline">¶</a></h2>
735
751
<divclass="section" id="help-sources">
736
-
<h3>Help sources<aclass="headerlink" href="#help-sources" title="Permalink to this headline">¶</a></h3>
752
+
<spanid="id6"></span><h3>Help sources<aclass="headerlink" href="#help-sources" title="Permalink to this headline">¶</a></h3>
737
753
<p>Help menu entry “IDLE Help” displays a formatted html version of the
738
754
IDLE chapter of the Library Reference. The result, in a read-only
739
755
tkinter text window, is close to what one sees in a web browser.
@@ -801,6 +817,7 @@ <h3><a href="../contents.html">Table of Contents</a></h3>
0 commit comments