Create Simple GUI Applications, with Python & Qt5
Create Simple GUI Applications, with Python & Qt5 (The Book + Source Code)
Minimum price
Suggested price
Create Simple GUI Applications, with Python & Qt5

This book is 70% complete

Last updated on 2019-08-11

About the Book

Create Simple GUI Applications is the hands on guide to building desktop apps with Python.

If you want to learn how to write GUI applications it can be pretty tricky to get started. There are a lot of new concepts you need to understand to get anything to work. But, like any code, writing GUI applications requires you to learn to think about the problem in the right way.

Starting from the basics of creating your first window, the book takes you on a tour of the key features of PyQt you'll use for building real-life applications.

The ebook covers — Installing PyQt (Windows, Mac, Linux), Creating a Qt application, Signals & Actions, Widgets, Layouts, Dialogs, Designing apps with Qt Creator, Advanced Signals & Events and Multithreading Qt applications

I've been developing Python desktop applications for 6 years using Qt. It's a great way to create professional-looking and portable apps easily. I've picked up plenty of tricks and I want to pass that knowledge onto you.

About the Author

Martin Fitzpatrick
Martin Fitzpatrick

Hello! I'm a self-taught programmer with experience dating back nearly 30 years. I currently write code full-time software engineer, working most happily and most often in Python. I enjoy using code to create new and interesting tools and as a route to understanding how things work. In my spare time I tinker with Python GUIs and MicroPython-powered robots.

Table of Contents

  • Introduction
    • Book format
    • Qt and PyQt
    • Python 3
  • Getting Started
    • Installation Windows
    • PyQt5 for Python 3
    • PyQt5 for Python 2.7
    • Installation Mac
    • Installation Linux (Ubuntu)
  • Basic Qt Features
    • My first Window
    • Signals, Slots, Events
    • Actions, Toolbars and Menus
    • Widgets
    • Layouts
    • Dialogs
  • Qt Creator
    • Creating a .ui file
    • Laying out your Main Window
    • Using your generated .ui file
    • Adding application logic
  • Extended Signals
    • Modifying Signal Data
    • Custom Signals
  • QPainter and Bitmap Graphics
    • QPainter
    • Drawing primitives
    • A bit of fun with QPainter
  • Creating Custom Widgets
    • Getting started
    • paintEvent
    • Positioning
    • Updating the display
    • Drawing the bar
    • Customising the Bar
    • Adding the QAbstractSlider Interface
    • Updating from the Meter display
    • The final code
  • The Model View Architecture
    • Model View Controller
    • The Model View
    • A simple Model View — a Todo List
    • A persistent data store
  • Multithreading
    • Preparation
    • The dumb approach
    • Threads and Processes
    • QRunnable and QThreadPool
    • Extended Runners
    • Thread IO
    • QRunnable Examples
  • Example PyQt5 Applications
    • Mozzarella Ashbadger
    • Moonsweeper
  • Packaging PyQt Applications
    • fbs: fman Build System
  • What’s next?
  • The video course
  • Resources
    • Tutorials
    • Documentation
    • Icon sets
    • Source code
  • Copyright
  • Notes

Authors have earned$8,245,951writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. Free App. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub