Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
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

You're reading from  Raspberry Pi Projects for Kids

Product type Book
Published in Mar 2014
Publisher
ISBN-13 9781783982226
Pages 96 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:

  • Add buttons to zoom in or out

  • Add a textbox and button to update the location

  • Add a way of selecting different styles of map marker

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

  • Save and load the map settings (the location, position of markers, labels, and so on)

  • Allow 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 of telling Python where you want your widgets to be displayed.

The pack layout is useful for filling the screen with a single widget (like our map) or placing widgets in a line (like our window for typing in label names).

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

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}