From 5100030298351e963bfbd31f5a48ae485798ea40 Mon Sep 17 00:00:00 2001
From: Stan Ulbrych File menu (Shell and Editor)
str.rstrip() to each line,
including lines within multiline strings. Except for Shell windows,
remove extra newlines at the end of the file.
Arrow keys move the cursor one character or line.
C-LeftArrow and C-RightArrow moves left or right one word.
C-LeftArrow and C-RightArrow moves left or right one word.
Home and End go to the beginning or end of the line.
Page Up and Page Down go up or down one screen.
C-Home and C-End go to beginning or end of the file.
Backspace and Del (or C-d) delete the previous +
C-Home and C-End go to beginning or end of the file.
Backspace and Del (or C-d) delete the previous or next character.
C-Backspace and C-Del delete one word left or right.
C-k deletes (‘kills’) everything to the right.
C-Backspace and C-Del delete one word left or right.
C-k deletes (‘kills’) everything to the right.
Standard keybindings (like C-c to copy and C-v to paste) +
Standard keybindings (like C-c to copy and C-v to paste) may work. Keybindings are selected in the Configure IDLE dialog.
C-c attempts to interrupt statement execution (but may fail).
C-d closes Shell if typed at a >>> prompt.
Alt-p and Alt-n (C-p and C-n on macOS) +
C-c attempts to interrupt statement execution (but may fail).
C-d closes Shell if typed at a >>> prompt.
Alt-p and Alt-n (C-p and C-n on macOS) retrieve to the current prompt the previous or next previously entered statement that matches anything already typed.
Return while the cursor is on any previous statement @@ -517,27 +517,73 @@
idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
-
--c command run command in the shell window
--d enable debugger and open shell window
--e open editor window
--h print help message with legal combinations and exit
--i open shell window
--r file run file in shell window
--s run $IDLESTARTUP or $PYTHONSTARTUP first, in shell window
--t title set title of shell window
-- run stdin in shell (- must be last option before args)
+IDLE can be invoked from the command line with various options. The general syntax is:
+python -m idlelib [options] [file ...]
-If there are arguments:
+The following options are available:
+Run the specified Python command in the shell window.
+For example, pass -c "print('Hello, World!')".
+On Windows, the outer quotes must be double quotes as shown.
Enable the debugger and open the shell window.
+Open an editor window.
+Print a help message with legal combinations of options and exit.
+Open a shell window.
+Run the specified file in the shell window.
+Run the startup file (as defined by the environment variables IDLESTARTUP or PYTHONSTARTUP) before opening the shell window.
Set the title of the shell window.
+Read and execute standard input in the shell window. This option must be the last one before any arguments.
+If arguments are provided:
If -, -c, or r is used, all arguments are placed in
-sys.argv[1:...] and sys.argv[0] is set to '', '-c',
-or '-r'. No editor window is opened, even if that is the default
-set in the Options dialog.
Otherwise, arguments are files opened for editing and
-sys.argv reflects the arguments passed to IDLE itself.
If -, -c, or -r is used, all arguments are placed in sys.argv[1:],
+and sys.argv[0] is set to '', '-c', or '-r' respectively.
+No editor window is opened, even if that is the default set in the Options dialog.
Otherwise, arguments are treated as files to be opened for editing, and sys.argv reflects the arguments passed to IDLE itself.