Mastering GUI Programming with Python: Develop impressive cross-platform GUI applications with PyQt
Authors: Alan D. Moore
ISBN-10: 178961290X
ISBN-13: 9781789612905
Released: 2019-05-24
Print Length 页数: 542 pages
Book Description
An advanced guide to creating powerful high-performance GUIs for modern,media-rich applications in various domains such as business and game development
PyQt5 has long been the most powerful and comprehensive GUI framework available for Python,yet there is a lack of cohesive resources available to teach Python programmers how to use it. This book aims to remedy the problem by providing comprehensive coverage of GUI development with PyQt5.
You will get started with an introduction to PyQt5,before going on to develop stunning GUIs with modern features. You will then learn how to build forms using QWidgets and learn about important aspects of GUI development such as layouts,size policies,and event-driven programming. Moving ahead,you’ll discover PyQt5’s most powerful features through chapters on audio-visual programming with QtMultimedia,database-driven software with QtSQL,and web browsing with QtWebEngine. Next,in-depth coverage of multithreading and asynchronous programming will help you run tasks asynchronously and build high-concurrency processes with ease. In later chapters,you’ll gain insights into QOpenGLWidget,along with mastering techniques for creating 2D graphics with QPainter. You’ll also explore PyQt on a Raspberry Pi and interface it with remote systems using QtNetwork. Finally,you will learn how to distribute your applications using setuptools and PyInstaller.
By the end of this book,you will have the skills you need to develop robust GUI applications using PyQt.
What you will learn
Get to grips with the inner workings of PyQt5
Learn how elements in a GUI application communicate with signals and slots
Learn techniques for styling an application
Explore database-driven applications with the QtSQL module
Create 2D graphics with QPainter
Delve into 3D graphics with QOpenGLWidget
Build network and web-aware applications with QtNetwork and QtWebEngine
contents
1 Getting Started with PyQt
2 Building Forms with QtWidgets
3 Handling Events with Signals and Slots
4 Building Applications with QMainWindow
5 Creating Data Interfaces with Model-View Classes
6 Styling Qt Applications
7 Working with Audio-Visual Using QtMultimedia
8 Networking with QtNetwork
9 Exploring SQL with Qt SQL
10 Multithreading with QTimer and QThread
11 Creating Rich Text with QTextDocument
12 Creating 2D Graphics with QPainter
13 Creating 3D Graphics with QtOpenGL
14 Embedding Data Plots with QtCharts
15 PyQt Raspberry Pi
16 Web Browsing with QtWebEngine
17 Preparing Your Software for Distribution