O'Reilly logo

Raspberry Pi Projects for Kids - Second Edition by Daniel Bates

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extensions

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 https://wiki.python.org/moin/TkInter.

Layout

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required