-
Book Overview & Buying
-
Table Of Contents
Python 2.6 Graphics Cookbook
By :
This happens because the Windows operating system does not know where to find Python when you type python into a command window as shown in the following screenshot:

There are three ways around this problem:
Type in the full pathname for both python and the target program we want to run. In this example, we have used the python program named entry_box_1.py. It has been stored inside a folder named constr as described in the first example Running a Shortest Python Program in the first chapter. The following screenshot shows the command-line dialog. george is the name of the user logged into Windows.

Work inside the Python27 folder. What we do is cd.. and cd.. again. Then cd into folder Python27. Then we can just type python \constr\entry_box_1.py into the command-line as shown in the following screenshot:

Change the Windows system variable that informs Windows where to search for executable files. We do this by typing set PATH=%PATH%;C:\Python27 into...
Change the font size
Change margin width
Change background colour