Who this book is for
This book is meant for intermediate to advanced programmers and developers who have
some preliminary knowledge of Python programming. This book can be of great use for
trainers, teachers, and software developers who wish to build a fully-featured GUI-based
application in Python.
What this book covers
Chapter 1, Creating a User Interface with Qt Components, teaches readers to use certain basic
widgets of Qt Designer and how to display a welcome message along with the username.
You will also be learning how to choose one out of several options using radio buttons and
choose more than one out of several options by making use of checkboxes.
Chapter 2, Event Handling – Signals and Slots, covers how to execute specific tasks on the
occurrence of certain events on any widget, how to copy and paste text from one Line Edit
widget to another, convert data types and make a small calculator, and use spin boxes,
scrollbars, and sliders. You will also learn to perform multiple tasks using the List Widget.
Chapter 3, Working with Date and Time, focuses on learning how to display the system clock
time using an LCD, show the date selected by the user from Calendar Widget, create a hotel
reservation form, and display tabular data using Table widget.
Preface
Chapter 4, Understanding OOP Concepts, discusses object-oriented programming concepts
such as how to use classes, single inheritance, multilevel inheritance in GUI applications,
and multiple inheritance.
Chapter 5, Understanding Dialogs, explores the use of certain dialogs, where each dialog is
meant for fetching a different kind of information. You will also learn to take input from the
user using input dialog.
Chapter 6, Understanding Layouts, explains how to arrange widgets horizontally, vertically,
and in different layouts by making use of Horizontal Layout, Vertical Layout, Grid Layout,
and arranging widgets in two column layout using Form Layout.
Chapter 7, Networking and Managing Large Documents, demonstrates how to make a small
browser, establish a connection between client and server, create a dockable and floatable
sign in form, and manage more than one document using MDI. Also, you will be learn how
to display information in sections using the Tab widget. You will learn how to create a
custom menu bar that invokes different graphics tools when a specific menu item is chosen.
Chapter 8, Doing Asynchronous Programming in Python, looks at the concept of
asynchronous operations using threads. To see the impact of asynchronous operations on
GUIs, you will be making use of a progress bar, that is, the progress bars will be updated
through threads asynchronously.
Chapter 9, Database Handling, outlines how to manage a SQLite database to keep
information for future use. Using the knowledge gained, you will learn to make a signin
form that checks whether a user's email address and password are correct or not.
Chapter 10, Using Graphics, explains how to display certain graphics in the application.
You will also learn how to create a toolbar of your own that contains certain tools that can
be used to draw different graphics.
Chapter 11, Implementing Animation, features how to display a 2D graphical image, make a
ball move down on the click of a button, make a bouncing ball, and make a ball animate as
per the specified curve.
Chapter 12, Using Google Maps, showcases how to use the Google API to display location
and other information. You will learn to derive the distance between two locations and
display location on Google Maps on the basis of longitude and latitude values that are
entered.