Build a Text Input Box in Pygame
TEXTINPUT events, cursor, focus and length limits.
In-depth guides on the topics that come after the tutorials, from packaging and publishing your game to performance, input devices, save files and debugging.
TEXTINPUT events, cursor, focus and length limits.
Nearest-neighbour scaling, low-res rendering and palettes.
Tracebacks, overlays, hit boxes and common bugs.
Hot-plugging, sticks, buttons, D-pads and rumble.
SCALED, letterboxing, fullscreen and high-DPI screens.
Folders, modules, assets and settings for growing games.
One-file and one-folder builds, assets, icons and gotchas.
Async loops, local testing and itch.io uploads.
Measure, convert, pre-render, cache and cull.
Per-user folders, safe writes and versioned JSON.
Each guide answers one practical question that the tutorials don't cover in depth. Code in the articles was checked against pygame-ce 2.5.8 and pygame 2.6.1, and longer examples are complete programs you can download. Articles are reviewed and updated as Pygame and its tools change; see the editorial policy.