Using the Standard Library Features
❘
107
FIguRE 6-6:
The Python Manual relies on a standard help file to provide detailed information
about Python.
FIguRE 6-7:
IDLE is a nice development environment for working with Python.
548592c06.indd 107
2/24/10 12:47:53 PM
www.finebook.ir
108
❘
CHAPTER 6
Using the Python standard Library
The Font/Tabs page contains a number of
interesting options. For example, if you’re a
bit older, you might want to use a larger font
than the default or even a font that offers serifs
to make it easier to follow text on screen. You
can also make the text bold, which can help
when you’re using a laptop in a sunny environ-
ment. The tab setting helps you use indenta-
tion, but still get more text on screen. Most
people find that 3 spaces is the minimum inden-
tation that works.
The Highlighting page, shown in Figure 6-9,
helps you adjust the coloration used to display
certain kinds of code and application features.
This is an especially useful feature for people
who have color blindness because you can adjust
the colors to make various kinds of highlights
easier to see. You can save your settings as a
theme. In fact, you might want to have special
themes for particular purposes, such as low
ambient lighting.
The Keys page, shown in Figure 6-10, helps you
set the control keys used to move around the application quickly. IDLE comes with four key setups
as a default.
➤
IDLE Classic Mac
➤
IDLE Classic OS/X
➤
➤
IDLE Classic Unix
➤
➤
IDLE Classic Windows
➤
➤
Of course, you can always create your own key setups and save them. Some people (such as those
who are left-handed) might find that the default key setups don’t work for them.
The General page, shown in Figure 6-11, lets you set general application settings. For example,
you can tell IDLE what to do during certain events such as startup and before you run your
application. You can also control the initial size of the IDLE window and the encoding used for
the text.
For some reason, IDLE lacks a command to start the editor from within the
shell. The editor, however, has a command to start the shell. Consequently, you
want to configure IDLE to start with the editor open by choosing the Open Edit
Window as the At Startup option.
FIguRE 6-8:
The Fonts/Tabs page lets you
configure the display for ease of viewing and
optimize the tab spacing.
548592c06.indd 108
2/24/10 12:47:53 PM
www.finebook.ir
Do'stlaringiz bilan baham: |