Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Geospatial Development Essentials

You're reading from   Python Geospatial Development Essentials Utilize Python with open source libraries to build a lightweight, portable, and customizable GIS desktop application

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781782175407
Length 192 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Karim Bahgat Karim Bahgat
Author Profile Icon Karim Bahgat
Karim Bahgat
Arrow right icon
View More author details
Toc

Creating the toolkit building blocks

Before we can start designing our GUI layout, we have to create the toolkit package containing the underlying building blocks or design elements that we will be using. Tkinter already provides a set of basic GUI element or widget classes, such as Buttons, Labels, or CheckBoxes, with methods for placing them in the application window or nested within each other. To stay consistent with this logic, we subclass these Tkinter widgets and expand on them to make our own specialized building block widgets. This way our GUI code becomes consistent, stable, and reusable.

In our toolkit package, we want to have a few widgets readily available: icon buttons, toolbars, a ribbon tab system, a status bar, a panel overview to contain data layers, a map widget, and pop-up window templates. We also need a way for our buttons to connect with and execute geospatial work tasks from our GIS code library, so we make a command dispatch tool. However, before we start making...

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 $19.99/month. Cancel anytime
Banner background image