py-sdl2:SDL2周围的Python ctypes包装器

时间:2024-06-01 12:52:37
【文件属性】:

文件名称:py-sdl2:SDL2周围的Python ctypes包装器

文件大小:769KB

文件格式:ZIP

更新时间:2024-06-01 12:52:37

python sdl2 sdl2-mixer sdl2-ttf sdl2-image

PySDL2 PySDL2是围绕SDL2,SDL2_mixer,SDL2_image,SDL2_ttf和SDL2_gfx库的纯Python包装。 它不依赖C代码,而是使用内置的ctypes模块与SDL2进行接口,并提供简单的Python类和用于通用SDL2功能的包装器。 安装 PySDL2易于安装并集成到您自己的项目中。 要安装或更新到最新版本,只需在终端中运行以下命令之一: # Install latest stable version from PyPI pip install -U pysdl2 # Install latest development verion from GitHub pip install -U git+https://github.com/marcusva/py-sdl2.git 注意:如果在同时安装了Python 2和3的计算机上的Python 3上


网友评论