June 2021
Beginner
208 pages
3h 50m
English
Everything we have done so far has been text based. In fact, our Hangman game would not have looked out of place on a 1980s home computer. This chapter shows you how to create applications with a proper graphical user interface (GUI).
There are many Python libraries for creating GUIs, but perhaps the easiest to get started with is called guizero. guizero was created by Laura Sach and Martin O’Hanlan at the Raspberry Pi Foundation.
The guizero package is pre-installed on new versions of Raspberry Pi OS, so it’s ready waiting for us to use. However, it’s a good idea to make sure you have the latest version by running the following command in the terminal.
$ sudo pip3 install --upgrade guizero