Python GUI Programming with Tkinter: Develop responsive and powerful GUI applications with Tkinter, 2nd Edition
- Length: 631 pages
- Edition: 2
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2021-12-09
- ISBN-10: 1801815925
- ISBN-13: 9781801815925
- Sales Rank: #676847 (See Top 100 Books)
Write feature-rich GUI applications from scratch to meet the demands of evolving user needs
Key Features
- Take advantage of Tkinter’s lightweight, portable, and easy-to-use features
- Transform your business requirements into efficient applications
- Build better-organized code and learn to manage an evolving codebase
Book 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. Starting from a set of business requirements for a simple data entry form, you’ll build a full-blown application from the ground up, 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, such as version control and unit testing, separation of concerns through the ubiquitous model-view-controller (MVC) design pattern, and object-oriented programming (OOP) to organize your code and go beyond the default Tkinter widget capabilities.
Throughout, the design choices you make are contextualized in important real-world terms. You’ll gain experience with technologies often used in workplace applications, such as SQL databases, network services, and data visualization libraries. You’ll also package your application for wider distribution and tackle the challenge of maintaining compatibility across multiple platforms.
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
Who This Book Is 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.
Table of Contents
- Introduction to Tkinter
- Designing GUI Applications
- Creating Basic Forms with Tkinter and Ttk Widgets
- Organizing our code with Classes
- Reducing User Error with Validation and Automation
- Planning for the Expansion of Our Application
- Creating Menus with Menu and Tkinter Dialogs
- Navigating Records with Treeview and Notebook
- Improving the Look with Styles and Themes
- Maintaining Cross-Platform Compatibility
- Creating Automated Tests with unittest
- Improving Data Storage with SQL
- Connecting to the Cloud
- Asynchronous Programming with Thread and Queue
- Visualizing Data Using the Canvas Widget
- Packaging with setuptools and cx_Freeze
- Appendix