Book description
Explore Python's GUI frameworks and create visually stunning and feature-rich applications
Key Features
- Integrate stunning data visualizations using Tkinter Canvas and Matplotlib
- Understand the basics of 2D and 3D animation in GUI applications
- Explore PyQt's powerful features to easily design and customize your GUI applications
Book Description
A responsive graphical user interface (GUI) helps you interact with your application, improves user experience, and enhances the efficiency of your applications. With Python, you'll have access to elaborate GUI frameworks that you can use to build interactive GUIs that stand apart from the rest.
This Learning Path begins by introducing you to Tkinter and PyQt, before guiding you through the application development process. As you expand your GUI by adding more widgets, you'll work with networks, databases, and graphical libraries that enhance its functionality. You'll also learn how to connect to external databases and network resources, test your code, and maximize performance using asynchronous programming. In later chapters, you'll understand how to use the cross-platform features of Tkinter and Qt5 to maintain compatibility across platforms. You'll be able to mimic the platform-native look and feel, and build executables for deployment across popular computing platforms.
By the end of this Learning Path, you'll have the skills and confidence to design and build high-end GUI applications that can solve real-world problems.
This Learning Path includes content from the following Packt products:
- Python GUI Programming with Tkinter by Alan D. Moore
- Qt5 Python GUI Programming Cookbook by B. M. Harwani
What you will learn
- Visualize graphs in real time with Tkinter's animation capabilities
- Use PostgreSQL authentication to ensure data security for your application
- Write unit tests to avoid regression when updating code
- Handle different signals generated on mouse clicks using QSpinBox and sliders
- Employ network concepts, internet browsing, and Google Maps in UI
- Use graphics rendering to implement animations in your GUI
Who this book is for
If you're an intermediate Python programmer looking to enhance your coding skills by writing powerful GUIs in Python using PyQT and Tkinter, this is an ideal Learning Path for you. A strong understanding of the Python language is a must to grasp the concepts explained in this book.
Table of contents
- Title Page
- Copyright
- About Packt
- Contributors
- Preface
- Introduction to Tkinter
- Designing GUI Applications with Tkinter
- Creating Basic Forms with Tkinter and ttk Widgets
- 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
- Improving the Look with Styles and Themes
- Creating Automated Tests with unittest
- Improving Data Storage with SQL
- Connecting to the Cloud
- Visualizing Data Using the Canvas Widget
- Creating a User Interface with Qt Components
-
Event Handling - Signals and Slots
- Introduction
- Using Signal/Slot Editor
- Copying and pasting text from one Line Edit widget to another
- Converting data types and making a small calculator
- Using the Spin Box widget
- Using scrollbars and sliders
- Using List Widget
- Selecting multiple list items from one List Widget and displaying them in another
- Adding items into List Widget
- Performing operations in List Widget
- Using the Combo Box widget
- Using the Font Combo Box widget
- Using the Progress Bar widget
- Understanding OOP Concepts
- Understanding Dialogs
- Understanding Layouts
- Networking and Managing Large Documents
-
Database Handling
- Introduction
- Creating a database
- Creating a database table
- Inserting rows in the specified database table
- Displaying rows in the specified database table
- Navigating through the rows of the specified database table
- Searching a database table for specific information
- Creating a signin form – applying an authentication procedure
- Updating a database table – changing a user's password 
- Deleting a row from a database table
-
Using Graphics
- Introduction
- Displaying mouse coordinates
- Displaying coordinates where the mouse button is clicked and released
- Displaying a point where the mouse button is clicked
- Drawing a line between two mouse clicks
- Drawing lines of different types
- Drawing a circle of a desired size
- Drawing a rectangle between two mouse clicks
- Drawing text in a desired font and size
- Creating a toolbar that shows different graphics tools
- Plotting a line using Matplotlib
- Plotting a bar using Matplotlib
- Implementing Animation
- Using Google Maps
- Other Books You May Enjoy
Product information
- Title: Python GUI Programming - A Complete Reference Guide
- Author(s):
- Release date: June 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838988470
You might also like
book
Rapid GUI Programming with Python and Qt: The Definitive Guide to PyQt Programming
The Insider’s Best-Practice Guide to Rapid PyQt 4 GUI Development Whether you’re building GUI prototypes or …
book
Qt5 Python GUI Programming Cookbook
Over 60 recipes to help you design interactive, smart, and cross-platform GUI applications Key Features Get …
book
Python for MATLAB Development: Extend MATLAB with 300,000+ Modules from the Python Package Index
MATLAB can run Python code! Python for MATLAB Development shows you how to enhance MATLAB with …
book
Tkinter GUI Application Development Blueprints
Master GUI programming in Tkinter as you design, implement, and deliver ten real-world applications from start …