Book description
Over 60 recipes to help you design interactive, smart, and cross-platform GUI applications
Key Features
- Get succinct QT solutions to pressing GUI programming problems in Python
- Learn how to effectively implement reactive programming
- Build customized applications that are robust and reliable
Book Description
PyQt is one of the best cross-platform interface toolkits currently available; it's stable, mature, and completely native. If you want control over all aspects of UI elements, PyQt is what you need. This book will guide you through every concept necessary to create fully functional GUI applications using PyQt, with only a few lines of code.
As you expand your GUI using more widgets, you will cover networks, databases, and graphical libraries that greatly enhance its functionality. Next, the book guides you in using Qt Designer to design user interfaces and implementing and testing dialogs, events, the clipboard, and drag and drop functionality to customize your GUI. You will learn a variety of topics, such as look and feel customization, GUI animation, graphics rendering, implementing Google Maps, and more. Lastly, the book takes you through how Qt5 can help you to create cross-platform apps that are compatible with Android and iOS. You will be able to develop functional and appealing software using PyQt through interesting and fun recipes that will expand your knowledge of GUIs
What you will learn
- Use basic Qt components, such as a radio button, combo box, and sliders
- Use QSpinBox and sliders to handle different signals generated on mouse clicks
- Work with different Qt layouts to meet user interface requirements
- Create custom widgets and set up customizations in your GUI
- Perform asynchronous I/O operations and thread handling in the Python GUI
- Employ network concepts, internet browsing, and Google Maps in UI
- Use graphics rendering and implement animation in your GUI
- Make your GUI application compatible with Android and iOS devices
Who this book is for
If you're an intermediate Python programmer wishing to enhance your coding skills by writing powerful GUIs in Python using PyQT, this is the book for you.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
- 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
- Working with Date and Time
- Understanding OOP Concepts
- Understanding Dialogs
- Understanding Layouts
- Networking and Managing Large Documents
- Doing Asynchronous Programming in Python
-
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
-
Running Python Scripts on Android and iOS
- Introduction
- Copying scripts from PC to Android devices
- Prompting for a username and displaying a welcome message
- Understanding different buttons in a dialog box
- Performing single selection from a list
- Performing multiple selections from a list
- Displaying a Date Picker dialog
- Capturing images using a camera
- Making an Android device speak a text input
- Creating a cross-platform Python script using Kivy
- Packaging a Python Script into the Android APK using Buildozer
- Packaging Python script for iOS
- Other Books You May Enjoy
Product information
- Title: Qt5 Python GUI Programming Cookbook
- Author(s):
- Release date: July 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788831000
You might also like
book
Python GUI Programming Cookbook - Third Edition
Over 90 recipes to help you develop widgets, forms, layouts, charts, and much more using the …
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
Python GUI Programming with Tkinter
Find out how to create visually stunning and feature-rich applications by empowering Python's built-in Tkinter GUI …
book
Python GUI Programming with Tkinter - Second Edition
Transform your evolving user requirements into feature-rich Tkinter applications Key Features Extensively revised with new content …