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

[pygame] BUG: File objects do not work in Image: Pygame 1.7.1, WinXP Pro IA32



The code:
img = pygame.image.load(file('b.png'))

results in:
Traceback (most recent call last):
  File "C:\Python24\a.py", line 48, in ?
    img = pygame.image.load(file('b.png'))
error: Error reading the PNG file.

I don't know if this has been fixed in Pygame 1.8. If I can get 1.8 compiled, I will test it.
This feature is specified in the documents. It is a useful feature, you can make file-like objects from anything (I wanted to use ZIP files).

Thank you,
Josh

PS: Is there anything I can to help with 1.8?