python3-PySDL2

Rating: 
5
Your rating: None Average: 5 (4 votes)

PySDL2 is a wrapper around the SDL2 library and as such similar to the
discontinued PySDL project. In contrast to PySDL, it has no licensing
restrictions, nor does it rely on C code, but uses ctypes instead.
doc: https://pysdl2.readthedocs.io/

compiled for Python3.8 noarch rpm (python3-py-sdl2-0.9.15-0)
compiled for Python3.11 noarch rpm (python3-py-sdl2-0.9.17-3.11)

Requires: SDL2
Recommends: python3-pyclip , SDL2_gfx , SDL2_ttf , SDL2_image , SDL2_mixer

This package allows to run a pure python3 app and open a window and interaction - touch events work (SDL_FINGERDOWN / ...UP , SDL_FINGERMOTION , SDL_MULTIGESTURE , event.tfinger.dx / dy (float) , event.mgesture.x / y / numFingers ), but GUI elements need absolute x/y positioning of finger on screen, which is hard - no qt5/qml/silica required.

SDL_Clipboard seems not to work, but python3-pyclip could do the job to provide clipboard functionality.

API is different to that of python3-pygame_sdl2 ( pygame )

sha256sum filename:
7d80a3212dd13848e12f4823b05604d028320628ab5d30651bfd25b899e29281 python3-py-sdl2-0.9.15-0.noarch.rpm
1001322e32ecc49fdd381926b20b98715595d9750217761fe058ac850e1c0543 python3-py-sdl2-0.9.17-3.11.noarch.rpm

Screenshots: 

Category:

Application versions: 
AttachmentSizeDate
File python3-py-sdl2-0.9.15-0.noarch.rpm624.91 KB03/04/2023 - 23:28
File python3-py-sdl2-0.9.17-3.11.noarch.rpm834.18 KB27/06/2026 - 20:53
Changelog: 

(none)