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

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




kevin hayes pisze:
I cannot load the chimp.bmp, and I cannot put a caption on the pygame window
while in the interpreter.

I know the path to chimp.bmp, but when I follow the directions in the
tutorial, it won't load.

just start interpreter "in" directory with files:

> c:
> cd chimp
> python                  (and then)
>>> import pygame


for example:

> d:
> dir
files    (this is directory)
> python
>>> file = open("file.txt")
>>> Traceback (etc...)
>>> [ctrl+d]
> cd files
> dir
file.txt
> python
>>> file = open("file.txt")    (and it work!)
>>>