I'm basically trying to follow this tutorial but I can't get past line 10..I'm using python.exe by way of the command prompt(and pygames) and I keep getting "pygame.error: Couldn't open ball.bmp". I also could have sworn I got a location error earlier, so do I have to put the image in the Python24 folder for every new program I decide to make?
P.S. Is there some kind of other program that can 'compile' python code so I don't have to use the command prompt?
ID:277304
Jan 4 2007, 1:21 pm (Edited on Jan 4 2007, 1:30 pm)
|
|
In response to Crispy
|
|
Hmm, I saved the script(test.py) alonh with ball.bmp to the desktop but I sitll get this: 0_0
Traceback (most recent call last): |
In response to CaptFalcon33035
|
|
Thanks, that helped me also.
|
In response to Mecha Destroyer JD
|
|
Hmm. You're sure that it is actually a Windows Bitmap file, and that you can open it in Paint?
Try opening a file that you know for sure doesn't exist, like "kljsfds.bmp", and see if the error message changes. |
You should be able to just put ball.bmp in the same folder as the script. That's how I've always done it, and it's always worked for me. (You do need ball.bmp of course.)
You should have had a copy of IDLE in your download. Start it up and go File->New or File->Open. Then you can press F5 to run.
It can behave erratically if your program uses GUIs though. I don't remember if this applies to pygame or not. I know it does apply to wxPython.