简体   繁体   中英

Where can I find the pygame.image class?

I would like to edit the pygame.image to add a method that returns the name of the object.

I've been looking around in /Library/Python/2.7/site-packages where I found Pygame, but I can't find the image class, even though I have found the folder.

Anyone knows?

If related to SDL wrapper from https://bitbucket.org/marcusva/py-sdl2/downloads then see: SDL../sdl2/ext folder has the image.py

Assuming you want the pre-compiled C version, see the pygame/src has a image.c and image.doc (documentation).

Best of luck!

假设pygame 1.9.1发行了,它在src文件夹中,但是用C实现。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM