Hello ! I am a beginner in pygame, i was just trying a simple pygame
program where I wanted to load an image (.png) from the same directory
where my actual source code was.
I wrote this line in my source code to load the image :

Img = pygame.image.load('cat.png')

But I got a traceback :

pygame.error: File is not a Windows BMP file

Can anyone pls tell what is the problem with the code, why this error
arises ?
I am using python 2.7.4 on Ubuntu

Thanks for the help in advance
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to