# Welcome to PySDL2’s documentation!

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.

# Getting Started

- Installing PySDL2
  - Using pip
  - Installing from source
  - Prerequisites
- Integrating PySDL2
  - Bundling SDL2 with pysdl2-dll
  - Bundling SDL2 without pysdl2-dll
  - Using different SDL2 versions
  - Known problems with SDL2 binaries
- PySDL2 FAQ
  - On importing…
  - Using…
  - How do I…
  - Font handling…
- Learn to fly - the tutorials
  - Hello World
  - The Pong Game
  - PySDL2 for Pygamers

# API Reference

- API reference
  - sdl2 - SDL2 library wrapper
  - sdl2.ext - Helpful wrappers for the SDL2 API
  - sdl2.sdlttf - Python bindings for SDL_ttf
  - sdl2.sdlimage - Python bindings for SDL_image
  - sdl2.sdlmixer - Python bindings for SDL_mixer
  - sdl2.sdlgfx - Python bindings for SDL2_gfx

# Project Information

- Release News
- Todo list for PySDL2
- License

# Indices and tables

- Index

- Module Index

- Search Page