Title: Understanding the Integrated DeveLopment Environment (IDLE) OBJECTIVES Th
ID: 3661711 • Letter: T
Question
Title: Understanding the Integrated DeveLopment Environment (IDLE)
OBJECTIVES
This iLab introduces you to the Integrated DeveLopment Environment. You will be asked to describe various commands of the interface.
II. PROCEDURE
Briefly list the submenu commands for the following IDLE commands.
FILE
EDIT
SHELL
DEBUG
OPTIONS
WINDOWS
HELP
What IDLE version are you using for ECT109? How did you find the information?
What is the command to assign a variable label of x? Set the memory location to a value of 25.
What is the command to print the contents of variable x?
What is the command to print the contents of variable x + 12?
Is x + hello world a valid command? If not, why?
What is the command to create a comment? Why should comments be included in programs?
What is the command to prompt the user for an input?
Where can a user find help for IDLE?
Using the Internet, list three projects that can be performed with the Raspberry Pi.
FILE
EDIT
SHELL
DEBUG
OPTIONS
WINDOWS
HELP
Explanation / Answer
FILE
New File
Create a new file editing window.
Open...
Open an existing file with an Open dialog.
Recent Files
Open a list of recent files. Click one to open it.
Open Module...
Open an existing module (searches sys.path).
Class Browser
Show functions, classes, and methods in the current Editor file in a tree structure. In the shell, open a module first.
Path Browser
Show sys.path directories, modules, functions, classes and methods in a tree structure.
Save
Save the current window to the associated file, if there is one. Windows that have been changed since being opened or last saved have a * before and after the window title. If there is no associated file, do Save As instead.
Save As...
Save the current window with a Save As dialog. The file saved becomes the new associated file for the window.
Save Copy As...
Save the current window to different file without changing the associated file.
EDIT
Undo
Undo the last change to the current window. A maximum of 1000 changes may be undone.
Redo
Redo the last undone change to the current window.
Cut
Copy selection into the system-wide clipboard; then delete the selection.
Copy
Copy selection into the system-wide clipboard.
Paste
Insert contents of the system-wide clipboard into the current window.
The clipboard functions are also available in context menus.
Select All
Select the entire contents of the current window.
Find...
Open a search dialog with many options
Find Again
Repeat the last search, if there is one.
Find Selection
Search for the currently selected string, if there is one.
Find in Files...
Open a file search dialog. Put results in an new output window.
Replace...
Open a search-and-replace dialog.
Go to Line
Move cursor to the line number requested and make that line visible.
SHELL
View Last Restart
Scroll the shell window to the last Shell restart.
Restart Shell
Restart the shell to clean the environment.
DEBUG
Go to File/Line
Look on the current line. with the cursor, and the line above for a filename and line number. If found, open the file if not already open, and show the line. Use this to view source lines referenced in an exception traceback and lines found by Find in Files. Also available in the context menu of the Shell window and Output windows.
Debugger (toggle)
When actived, code entered in the Shell or run from an Editor will run under the debugger. In the Editor, breakpoints can be set with the context menu. This feature is still incomplete and somewhat experimental.
Stack Viewer
Show the stack traceback of the last exception in a tree widget, with access to locals and globals.
Auto-open Stack Viewer
Toggle automatically opening the stack viewer on an unhandled exception.
OPTIONS
Configure IDLE
Open a configuration dialog and change preferences for the following: fonts, indentation, keybindings, text color themes, startup windows and size, additional help sources, and extensions (see below). On OS X, open the configuration dialog by selecting Preferences in the application menu. To use a new built-in color theme (IDLE Dark) with older IDLEs, save it as a new custom theme.
Non-default user settings are saved in a .idlerc directory in the user’s home directory. Problems caused by bad user configuration files are solved by editing or deleting one or more of the files in .idlerc.
Code Context (toggle)(Editor Window only)
Open a pane at the top of the edit window which shows the block context of the code which has scrolled above the top of the window.
WINDOWS
Zoom Height
Toggles the window between normal size and maximum height. The initial size defaults to 40 lines by 80 chars unless changed on the General tab of the Configure IDLE dialog.
The rest of this menu lists the names of all open windows; select one to bring it to the foreground (deiconifying it if necessary).
HELP
About IDLE
Display version, copyright, license, credits, and more.
IDLE Help
Display a help file for IDLE detailing the menu options, basic editing and navigation, and other tips.
Python Docs
Access local Python documentation, if installed, or start a web browser and open docs.python.org showing the latest Python documentation.
Turtle Demo
Run the turtledemo module with example python code and turtle drawings.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.