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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Tkinter GUI Application Development Blueprints

You're reading from   Tkinter GUI Application Development Blueprints Master GUI programming in Tkinter as you design, implement, and deliver 10 real-world applications

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher Packt
ISBN-13 9781785889738
Length 340 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Bhaskar Chaudhary Bhaskar Chaudhary
Author Profile Icon Bhaskar Chaudhary
Bhaskar Chaudhary
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Meet Tkinter FREE CHAPTER 2. Making a Text Editor 3. Programmable Drum Machine 4. A Game of Chess 5. Building an Audio Player 6. Paint Application 7. Multiple Fun Projects 8. Miscellaneous Tips Index

Installing Python and Tkinter

To work on the projects in this chapter, you must have a working copy of Python 3.4.0 installed on your computer.

The Python download package and instructions for downloading for different platforms are available at https://www.python.org/downloads/release/python-340/.

The installer binaries for Mac OS X and the Windows platform are available at the aforementioned link. Python 3.4 is installed by default on Ubuntu 14.04. Unfortunately, Ubuntu 14.04 does not ship with Tkinter. You have to install it manually. Other Linux users can also install the Python Interpreter (v3.4) package from the official repository or build it directly from the source link provided in the aforementioned link.

We will develop our application on the Ubuntu platform. However, since Tkinter is cross-platform, you can follow along with the instructions in this book on Windows, Mac, or any other Linux distribution, without making any modifications to the code.

After installing Python, open the Python 3.4 interactive shell and type in the following command:

>>> import tkinter

This shell command should be executed without an error.

If there are no error messages, the Tkinter module is installed on your Python distribution. When working with examples from this book, we do not support any Python version except for Python 3.4.0, which comes bundled with Tkinter Tcl/Tk Version 8.6. However, most of the examples should work out-of-the-box on other minor Python 3 versions.

To check whether you have the correct Tkinter version on your Python installation, type the following commands in your IDLE or interactive shell:

>>> import tkinter
>>> tkinter._test()

This should make a window pop up. The first line in the window reads This is Tcl/Tk version 8.6. Make sure that it is not 8.5 or any earlier version, as Version 8.6 is a vast improvement over its previous versions.

You are ready to code Tkinter GUI applications if your version test confirms it as Tcl/Tk version 8.6.

Let's get started!

You have been reading a chapter from
Tkinter GUI Application Development Blueprints
Published in: Nov 2015
Publisher: Packt
ISBN-13: 9781785889738
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