Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi Projects for Kids (Second Edition)

You're reading from  Raspberry Pi Projects for Kids (Second Edition)

Product type Book
Published in Apr 2015
Publisher
ISBN-13 9781785281525
Pages 146 pages
Edition 1st Edition
Languages
Author (1):
Daniel Leonard Bates Daniel Leonard Bates
Profile icon Daniel Leonard Bates

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}