Title Page
Copyright and Credits
Qt5 Python GUI Programming Cookbook
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Creating a User Interface with Qt Components
Introduction
PyQt
Ways of creating GUI applications
Displaying a welcome message
Understanding the Label widget
Methods
Understanding the Line Edit widget
Methods
Understanding the Push Button widget
How to do it...
How it works...
Using the Radio Button widget
Understanding Radio Button
Methods
Signal description
How to do it...
How it works...
Grouping radio buttons
Getting ready
How to do it...
How it works...
Displaying options in the form of checkboxes
Getting ready
Method application
Signal description
How to do it...
How it works...
Displaying two groups of checkboxes
Getting ready
How to do it...
How it works...
Event Handling - Signals and Slots
Introduction
Using Signal/Slot Editor
How to do it...
Copying and pasting text from one Line Edit widget to another
Getting ready
How to do it...
How it works...
Converting data types and making a small calculator
How to do it...
How it works...
Using the Spin Box widget
Getting ready
How to do it...
How it works...
Using scrollbars and sliders
Getting ready
How to do it...
How it works...
Using List Widget
Getting ready
How to do it...
How it works...
Selecting multiple list items from one List Widget and displaying them in another
How to do it...
How it works...
Adding items into List Widget
How to do it...
How it works...
Performing operations in List Widget
Getting ready
Methods provided by the QListWidgetItem class
How to do it....
How it works...
Using the Combo Box widget
How to do it…
How it works...
Using the Font Combo Box widget
Getting ready
How to do it…
How it works...
Using the Progress Bar widget
Getting ready
How to do it…
How it works...
Working with Date and Time
Displaying LCD digits
Using Timers
Using the QTime class
Displaying system clock time in LCD-like digits
How to do it...
How it works...
Displaying the date selected by the user from Calendar Widget
Getting ready
Displaying a calendar
Using the QDate class
Using the Date Edit widget
How to do it...
How it works...
Creating a hotel reservation form
Getting ready
How to do it...
How it works...
Displaying tabular data using Table Widget
Getting ready
Table Widget
The QTableWidgetItem class
How to do it...
How it works...
Understanding OOP Concepts
Object-oriented programming
Creating a class
Using the built-in class attributes
Accessing class variables in instance methods
Instances
Using classes in GUI
How to do it...
How it works...
Making the application more elaborate
Inheritance
Types of inheritance
Using single inheritance
Getting ready
How to do it...
How it works...
Using multilevel inheritance
Getting ready
How to do it...
How it works...
Using multiple inheritance
Getting ready
How to do it...
How it works...
Understanding Dialogs
Introduction
The input dialog box
Using the input dialog
How to do it...
How it works...
Using the color dialog
How to do it...
How it works...
Using the font dialog
How to do it...
How it works...
Using the file dialog
Getting ready
How to do it...
How it works...
Understanding Layouts
Understanding layouts
Spacers
Using Horizontal Layout
How to do it...
How it works...
Using Vertical Layout
How to do it...
How it works...
Using Grid Layout
How to do it...
How it works...
Using Form Layout
Getting ready
How to do it...
How it works...
Networking and Managing Large Documents
Introduction
Creating a small browser
How to do it...
How it works...
Creating a server-side application
How to do it...
How it works...
Establishing client-server communication
How to do it...
How it works...
Creating a dockable and floatable sign-in form
Getting ready
How to do it...
How it works...
Multiple Document Interface
Getting ready
How to do it...
How it works...
Displaying information in sections using Tab Widget
How to do it...
How it works...
Creating a custom menu bar
How to do it…
How it works...
Doing Asynchronous Programming in Python
Introduction
Multithreading
Asynchronous programming
Updating progress bar using thread
How to do it...
How it works...
Updating two progress bars using two threads
How to do it...
How it works...
Updating progress bars using threads bound with a locking mechanism
How to do it...
How it works...
Updating progress bars simultaneously using asynchronous operations
How to do it...
How it works...
Managing resources using context manager
Context manager
How to do it…
How it works...
Database Handling
Introduction
Creating the cursor object
Creating a database
How to do it…
How it works…
Creating a database table
How to do it…
How it works…
Inserting rows in the specified database table
How to do it…
How it works…
Displaying rows in the specified database table
How to do it…
How it works…
Navigating through the rows of the specified database table
How to do it…
How it works…
Searching a database table for specific information
How to do it…
How it works…
Creating a signin form – applying an authentication procedure
How to do it…
How it works…
Updating a database table – changing a user's password
How to do it…
How it works…
Deleting a row from a database table
How to do it…
How it works…
Using Graphics
Introduction
Displaying mouse coordinates
How to do it...
How it works...
Displaying coordinates where the mouse button is clicked and released
How to do it...
How it works...
Displaying a point where the mouse button is clicked
How to do it...
How it works...
Drawing a line between two mouse clicks
How to do it...
How it works...
Drawing lines of different types
How to do it...
How it works...
Drawing a circle of a desired size
How to do it...
How it works...
Drawing a rectangle between two mouse clicks
How to do it...
How it works...
Drawing text in a desired font and size
How to do it...
How it works...
Creating a toolbar that shows different graphics tools
How to do it…
How it works...
Plotting a line using Matplotlib
Getting ready
How to do it...
How it works...
Plotting a bar using Matplotlib
Getting ready
How to do it...
How it works...
Implementing Animation
Introduction
Implementing animation
Displaying a 2D graphical image
How to do it...
How it works...
Making a ball move down on the click of a button
How to do it...
How it works...
Making a bouncing ball
How to do it...
How it works...
Making a ball animate as per the specified curve
How to do it...
How it works...
Using Google Maps
Introduction
Finding out details of a location or a landmark
How to do it…
How it works…
Getting complete information from latitude and longitude values
How to do it…
How it works…
Finding out the distance between two locations
How to do it…
How it works…
Displaying location on Google Maps
How to do it…
How it works…
Running Python Scripts on Android and iOS
Introduction
Copying scripts from PC to Android devices
How to do it
Prompting for a username and displaying a welcome message
How to do it...
How it works...
Understanding different buttons in a dialog box
How to do it...
How it works...
Performing single selection from a list
How to do it...
How it works...
Performing multiple selections from a list
How to do it...
How it works...
Displaying a Date Picker dialog
How to do it...
How it works...
Capturing images using a camera
How to do it...
How it works...
Making an Android device speak a text input
How to do it...
How it works...
Creating a cross-platform Python script using Kivy
Getting started
How to do it...
Packaging a Python Script into the Android APK using Buildozer
Getting ready
How to do it...
How it works
Packaging Python script for iOS
How to do it...
How it works...
Other Books You May Enjoy
Leave a review - let other readers know what you think