Extensively revised with new content on RESTful networking, classes in Tkinter, and the Notebook widget
Take advantage of Tkinter’s lightweight, portable, and easy-to-use features
Build better-organized code and learn to manage an evolving codebase
Description
Tkinter is widely used to build GUIs in Python due to its simplicity. In this book, you’ll discover Tkinter’s strengths and overcome its challenges as you learn to develop fully featured GUI applications.
Python GUI Programming with Tkinter, Second Edition, will not only provide you with a working knowledge of the Tkinter GUI library, but also a valuable set of skills that will enable you to plan, implement, and maintain larger applications. You’ll build a full-blown data entry application from scratch, learning how to grow and improve your code in response to continually changing user and business needs.
You’ll develop a practical understanding of tools and techniques used to manage this evolving codebase and go beyond the default Tkinter widget capabilities. You’ll implement version control and unit testing, separation of concerns through the MVC design pattern, and object-oriented programming to organize your code more cleanly.
You’ll also gain experience with technologies often used in workplace applications, such as SQL databases, network services, and data visualization libraries. Finally, you’ll package your application for wider distribution and tackle the challenge of maintaining cross-platform compatibility.
Who is this book for?
This book is for programmers who understand the syntax of Python, but do not yet have the skills, techniques, and knowledge to design and implement a complete software application. A fair grasp of basic Python syntax is required.
What you will learn
Produce well-organized, functional, and responsive GUI applications
Extend the functionality of existing widgets using classes and OOP
Plan wisely for the expansion of your app using MVC and version control
Make sure your app works as intended through widget validation and unit testing
Use tools and processes to analyze and respond to user requests
Become familiar with technologies used in workplace applications, including SQL, HTTP, Matplotlib, threading, and CSV
Use PostgreSQL authentication to ensure data security for your application
Excellent product. Moves at an easy pace making it easy to learn. There are a good selection of diagrams to aid understanding of the topic.
Feefo Verified review
JohnstonAug 26, 2022
5
I purchased this book in order to learn more about GUI use and Tkinter. I didn't realize the book is over 600 pages. It starts out extremely simple and gets you going quickly while simultaneously teaching you in an understandable way. I'm only halfway through but so far, it's an awesome book. Goes over everything in great depth and is basically my new Tkinter offline encyclopedia. 10/10
Amazon Verified review
MaxMar 20, 2022
5
Ich habe dieses Buch mit großer Freude und mit viel Enthusiasmus durchgearbeitet. Dabei gefiel mir besonders der Aufbau und die Herangehensweise. Ich habe in noch keinem anderen Python Buch ein learning by doing wie hier gesehen. Das Konzept, die theoretischen Kenntnisse anhand eines Praxisbeispiels, einer App in diesem Fall, zu vermitteln, gefällt mir sehr gut. Ich hatte und habe viel Spaß mit dem Buch.
Amazon Verified review
Blaine BatemanNov 30, 2021
5
Python has become the most popular programming language in the world, in part because it can be used in so many different ways, is fully open source and free, and has tremendous support from a vast community of developers.This book is a great resource for developing simple user-facing applications in Python ("GUIs"). The Tkinter library, which is part of standard Python, is shown by author Alan Moore to enable development of simple to complex applications that could be used for your personal automation tasks to fairly sophisticated business needs. Moore explains the benefits of Tkinter over more "modern" approaches:Tkinter is in the standard libraryTkinter is stableTkinter is only a GUI toolkitTkinter is simple and no-nonsenseReinforcing this view, he allows you to create a "Hello World" application on your machine in the first 10 pages of Chapter 1. From there, a great value of this book is that instead of just reviewing Tkinter, Moore shows how to use important integrations such as SQL for databases, how to access files, how to communicate with websites and APIs, and many other real-world use cases that, by the end of the book, can allow you to standout in your work or wherever you apply it.Because of the "start simple" and "add layers" style of the book, although it comprises over 600 pages, you can get going right away, and skip to features you want to use and come back to others later. If you have wanted to develop "real" applications using Python, this is an excellent resource. At the end of the book Moore shows how to "freeze" applications into executables that can be shared with others. The sky is the limit here.
Alan D. Moore is a data analyst and software developer who has been solving problems with Python since 2006. He's developed both open source and private code using frameworks like Django, Flask, Qt, and of course Tkinter, and is known to contribute to various open-source Python and JavaScript projects.
Alan maintains a YouTube channel, “Alan D Moore Codes”, where he posts Python, PyQt, and Tkinter tutorials.
Alan lives in Franklin, Tennessee, where he works for the County Government, and with his wife Cara raises a crew of children who are just as geeky as their dad.
Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.
If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.
Please Note: Packt eBooks are non-returnable and non-refundable.
Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:
You may make copies of your eBook for your own use onto any machine
You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?
If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:
Register on our website using your email address and the password.
Search for the title by name or ISBN using the search option.
Select the title you want to purchase.
Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?
If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
To view your account details or to download a new copy of the book go to www.packtpub.com/account
Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.
You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.
What are the benefits of eBooks?
You can get the information you need immediately
You can easily take them with you on a laptop
You can download them an unlimited number of times
You can print them out
They are copy-paste enabled
They are searchable
There is no password protection
They are lower price than print
They save resources and space
What is an eBook?
Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.
When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.
For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.