January 2022
Beginner to intermediate
416 pages
10h 21m
English
Pygame allows programmers to take the text-based language of Python and use it to build GUI-based programs. Windows, pointing devices, clicking, dragging, and sounds have all become standard parts of our experience using computers. Unfortunately, the pygame package doesn’t come with built-in basic user interface elements, so we need to build them ourselves. We’ll do so with pygwidgets, a library of GUI widgets.
This chapter explains how standard widgets such as images, buttons, and input or output fields can be built as classes and how client code uses them. Building each element as a class allows programmers to incorporate ...