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

Attaching an application logo


Up until now, you have probably noticed that our application is shown with a small rather generic-looking red icon in the top left of the window and down by the list of open applications. This is the standard Tkinter logo used for all Tkinter GUI applications made in Python including the IDLE editor. For your own application, you will obviously want your own icon.

The icon image file

First, you must find or create the icon that you want. Now, in order to assign the logo to your application, you need it to be in a .ico format, a format that contains the same image at multiple different resolutions for optimal display. In all likelihood, the image you created or found will be a normal image file such as .png, .bmp, or .gif, so we need to convert it. We will do this as a one-time process using Python and PIL, since we already have them installed.

Using this PIL approach, there is one small obstacle that we may have to hack our way past. The online documentation for...

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