[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Help with the 3rd Lecture, first tutorial



Hi!

    First to work in DOS which is what you have to do in Windows is to make batch files.
    Your DOS prompt goes into a documents directory or where it ends up being. You then write and save batch files to get yourself around. It is much easier to write the batch files then to try and navigate.

Below is the batch files once in the python directory. This will take you to the examples folder and run the program for you.
    This format is standard and should work and just copy the file below to run the program. Things like @echo off and @echo on are just to hide the path and turn on the path. The symbol (@) is needed.

    Remember when saving this file you save it as EX.bat for this runs any program, any .py file in the example directory. Once you have done this then when running chimp from the python directory just do this:
ex chimp <Enter Key>

    All you have to do is save the file below as EX.BAT and once saved inside the Python25 directory then just type EX CHIMP and then hit the enter key and it will run your Chimp example.
ANOTHER NOTE:
    I will send a second version that dos not use the C drive just in case you are not in the C drive. So try this first if this is where the python folder is located. If not, 
    then there is a simple fix.

Cut and paste the below into Notepad then save File using Name EX.BAT:

@echo off
cd C:\Python25\examples\
@echo on
python25 %1.py
@echo off
cd c:\python25\