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
Copy file name to clipboardExpand all lines: Lib/idlelib/help.html
+29-9Lines changed: 29 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ <h3>Navigation</h3>
79
79
<p>IDLE has the following features:</p>
80
80
<ulclass="simple">
81
81
<li>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"><ttclass="xref py py-mod docutils literal"><spanclass="pre">tkinter</span></tt></a> GUI toolkit</li>
82
-
<li>cross-platform: works on Windows, Unix, and Mac OS X</li>
82
+
<li>cross-platform: works mostly the same on Windows, Unix, and Mac OS X</li>
83
83
<li>Python shell window (interactive interpreter) with colorizing
84
84
of code input, output, and error messages</li>
85
85
<li>multi-window text editor with multiple undo, Python colorizing,
@@ -223,7 +223,12 @@ <h3>25.5.1.3. Format menu (Editor window only)<a class="headerlink" href="#forma
223
223
Editor window.</dd>
224
224
<dt>Run Module</dt>
225
225
<dd>Do Check Module (above). If no error, restart the shell to clean the
226
-
environment, then execute the module.</dd>
226
+
environment, then execute the module. Output is displayed in the Shell
227
+
window. Note that output requires use of <ttclass="docutils literal"><spanclass="pre">print</span></tt> or <ttclass="docutils literal"><spanclass="pre">write</span></tt>.
228
+
When execution is complete, the Shell retains focus and displays a prompt.
229
+
At this point, one may interactively explore the result of execution.
230
+
This is similar to executing a file with <ttclass="docutils literal"><spanclass="pre">python</span><spanclass="pre">-i</span><spanclass="pre">file</span></tt> at a command
<h2>25.5.4. Startup and code execution<aclass="headerlink" href="#startup-and-code-execution" title="Permalink to this headline">¶</a></h2>
472
477
<p>Upon startup with the <ttclass="docutils literal"><spanclass="pre">-s</span></tt> option, IDLE will execute the file referenced by
473
478
the environment variables <spanclass="target" id="index-5"></span><ttclass="xref std std-envvar docutils literal"><spanclass="pre">IDLESTARTUP</span></tt> or <spanclass="target" id="index-6"></span><aclass="reference internal" href="../using/cmdline.html#envvar-PYTHONSTARTUP"><ttclass="xref std std-envvar docutils literal"><spanclass="pre">PYTHONSTARTUP</span></tt></a>.
474
479
IDLE first checks for <ttclass="docutils literal"><spanclass="pre">IDLESTARTUP</span></tt>; if <ttclass="docutils literal"><spanclass="pre">IDLESTARTUP</span></tt> is present the file
@@ -506,9 +511,23 @@ <h3>25.5.4.1. Command line usage<a class="headerlink" href="#command-line-usage"
506
511
<ttclass="docutils literal"><spanclass="pre">sys.argv</span></tt> reflects the arguments passed to IDLE itself.</li>
0 commit comments