Create GUI Applications PyQt5 Buy

PyQt5 · 5th Edition · Updated May 2024

Build desktop apps with Python & Qt5

Tired of piecing together incomplete and out-of-date examples? This is the hands-on guide that takes you from your first window to complete, professional applications with PyQt5 — with well-designed, modern solutions to real problems.

Get the eBook [[ displayPrices['pri_01hafjvt3nhfgsr558v1fxrx8m'] ]]

Downloadable ebook (PDF, ePub) & Complete Source code · 30-day money-back guarantee

Purchasing Power Parity

To support developers in [[ country ]] I give [[ discount.discount_pc ]]% off on all books & courses. Use code [[ discount.coupon_code ]] in the checkout.
Get [[ discount.discount_pc ]]% off for the next [[ discount.duration ]] [[ discount.description ]] with the code [[ discount.coupon_code ]]

20,000+ copies sold · 750+ pages · 280+ code examples

Using a different library? See other editions:

Not sure? Get all four ↓

Start here

From a few lines of Python to a real desktop app.

The book starts from first principles — your first window, your first button — and builds, chapter by chapter, to complete applications.

app.py
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton


class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("My App")

        button = QPushButton("Press Me!")
        button.clicked.connect(self.the_button_was_clicked)
        self.setCentralWidget(button)

    def the_button_was_clicked(self):
        print("Clicked!")


app = QApplication(sys.argv)
window = MainWindow()
window.show()
app.exec_()

$ python app.py

Go on, press it.

What you'll learn

Everything you need to build real apps

The key features of PyQt5 you'll use to build real-life applications — explained properly, with complete, runnable code for every chapter.

Widgets, layouts & signals

Start from the very basics of creating a window, then learn the building blocks of every PyQt5 app — widgets, layouts and signals — and how the event loop responds to your users.

Design UIs with Qt Designer

Build interfaces visually in Qt Designer's drag-and-drop editor, then load them straight into Python.

Styles, palettes & QSS

Customize almost anything with styles, palettes and Qt Style Sheets to completely change the look and feel of your apps.

Data-driven apps

Use Qt's model/view architecture to display SQL databases, numpy and pandas data, and keep widgets in sync automatically.

Custom widgets

Start with bitmap graphics and QPainter, and build up to entirely custom-drawn widgets of your own.

Threads & processes

Keep your app responsive with threads and processes — with progress bars, thread managers and external programs.

Interactive plots

Embed matplotlib and PyQtGraph plots, and use threads to build live dashboards.

Build real apps

Go beyond examples: build a web browser, Minesweeper, a Paint app and a Todo list using everything you've learned.

Package & ship

Package your PyQt5 apps and create installers for Windows, macOS and Linux, ready to share.

  • 20,000+copies sold
  • 750+pages
  • 280+code examples
  • 4complete apps

What readers say

Not your average ebook

Regularly improved for years

Forget thin pamphlets that just cover the basics. Create GUI Applications has been regularly improved and extended following reader feedback — now at over 750 pages, you benefit from the combined experience of thousands of readers.

  • 750+ page ebook in PDF & ePub
  • 280+ code examples, free to reuse in your own projects
  • Complete source code for every chapter
  • Lifetime updates — last updated May 2024
The Create GUI Applications paperback Example pages from the book

Table of contents

11 chapters, 750+ pages

01Basic PyQt5 Featuresp6–190
  • My first Application
  • Signals & Slots
  • Widgets
  • Layouts
  • Actions, Toolbars & Menus
  • Dialogs
  • Windows
  • Events
02Qt Designerp191–225
  • Installing Qt Designer
  • Getting started with Qt Designer
  • The Qt Resource system
03Themingp226–301
  • Styles
  • Palettes
  • Icons
  • Qt Style Sheets (QSS)
04Model View Architecturep302–379
  • The Model View Architecture — Model View Controller
  • A simple Model View — a Todo List
  • Tabular data in ModelViews, with numpy & pandas
  • SQL databases with Qt models
05Custom Widgetsp380–460
  • QPainter and Bitmap Graphics
  • Creating Custom Widgets
06Concurrent Executionp461–574
  • Introducing Threads & Processes
  • QRunnable and the QThreadPool
  • QRunnable Examples, Progress Bars & thread Managers
  • Running external commands with QProcess
07Plottingp575–614
  • PyQtGraph
  • Matplotlib
08Further Qt5 Featuresp615–666
  • Timers
  • Extending Signals
  • Working with Relative Paths
  • System tray & macOS menus
  • Enums & the Qt Namespace
  • Working with command-line arguments
09Packaging & Distributionp667–742
  • Packaging with PyInstaller
  • Creating a Windows Installer with Installforge
  • Creating a macOS Disk Image Installer
  • Creating a Linux Package with fpm
  • Packaging with fbs
10Example applicationsp743–790
  • Web Browser
  • Minesweeper
11Appendices
  • Translating C++ to Python
  • PyQt5 vs. PySide2
Martin Fitzpatrick

Your guide

Martin Fitzpatrick

Python programmer, author and tutor. Martin started out building desktop applications to make data-analysis tools more user-friendly — starting with Tk, moving to wxWidgets and finally adopting PyQt & PySide. He's been teaching PyQt for 8 years: "I know the problems you're facing, because I've seen them before."

Get the book

Let's get your project finished

PyQt5 Edition

Just this book

[[ displayPrices['pri_01hafjvt3nhfgsr558v1fxrx8m'] ]]

If you know you'll be using PyQt5 and don't need the other editions.

Get the PyQt5 book

All four editions

Create GUI Applications Book Bundle

[[ displayPrices['pri_01hf720z664x12fgdd74sjph7z'] ]]

Not sure whether you need PyQt or PySide, 5 or 6? Get every current & future edition of Create GUI Applications and keep your options open.

Get the Bundle

Everything

Great GUI Bundle

[[ displayPrices['pri_01hf72pfd4x7s46jhcjcgh0q73'] ]]

All editions, Packaging Python Applications, and every Python GUI book I release, forever, for a one-time purchase.

Get the Bundle

Purchasing Power Parity

To support developers in [[ country ]] I give [[ discount.discount_pc ]]% off on all books & courses. Use code [[ discount.coupon_code ]] in the checkout.
Get [[ discount.discount_pc ]]% off for the next [[ discount.duration ]] [[ discount.description ]] with the code [[ discount.coupon_code ]]

30-day money-back guarantee. If it's not for you, reply to your receipt email within 30 days for a full refund.

Questions

PyQt or PySide — which edition should I get?

Both are Python bindings for Qt and nearly all code is the same; each edition covers the differences in an appendix. The main practical difference is licensing: PySide is LGPL, while PyQt is GPL or commercial. If you're not sure, the Create GUI Applications Book Bundle includes all four editions.

Qt5 or Qt6?

Qt6 is the current version and the best choice for new projects. Choose a Qt5 edition if you're working on an existing Qt5 codebase.

What formats is the book in?

You get a downloadable ebook (PDF and ePub) along with the complete source code for every example.

How will I get my purchase?

After completing your purchase you'll receive an email with a link to download your files. Keep it secret, keep it safe.

How do I get updates?

Updates are free for life. You'll receive an email when new content is available (you can opt out if you wish).

What if I don't like it?

Just reply to the purchase receipt email within 30 days and I'll refund you. If you could tell me why, that would be great too, but it's not necessary.

I have another question

Just drop me an email.