Book Image

Raspberry Pi Projects for Kids (Second Edition)

By : Daniel Leonard Bates
Book Image

Raspberry Pi Projects for Kids (Second Edition)

By: Daniel Leonard Bates

Overview of this book

Table of Contents (14 chapters)


There are lots of things we could do now that we have a basic working GUI. Here are a few possible ideas:

  • Adding buttons to zoom in or out

  • Adding a textbox and button to update the location

  • Adding a way to select different styles of map marker

  • Selecting whether the map is a satellite image or a road map

  • Saving and loading the map settings (the location, position of markers, labels, and so on)

  • Allowing markers and their labels to be changed after they have been created

Complete details on how to use Tkinter can be found online at


In this chapter, we have used only the pack layout, but there are also other ways to tell Python where you want your widgets to be displayed.

The pack layout is useful to fill the screen with a single widget (similar to our map) or to place widgets in a line (similar to our window when we type in label names).

The grid layout allows us to line up widgets both vertically and horizontally. All the widgets that we put in...