Skip to Content
Programming the Raspberry Pi, Third Edition: Getting Started with Python, 3rd Edition
book

Programming the Raspberry Pi, Third Edition: Getting Started with Python, 3rd Edition

by Simon Monk
June 2021
Beginner
208 pages
3h 50m
English
McGraw-Hill Education TAB
Content preview from Programming the Raspberry Pi, Third Edition: Getting Started with Python, 3rd Edition

7

Graphical User Interfaces

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).

guizero

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

Hello World

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

Steven Lawrence Fernandes, Tim Cox
Getting Started With Arduino, 4th Edition

Getting Started With Arduino, 4th Edition

Massimo Banzi, Michael Shiloh

Publisher Resources

ISBN: 9781264257362