Preview:
PyQt5 tutorial
last modified August 14, 2020

This is PyQt5 tutorial. The tutorial is suited for beginners and intermediate programmers. After reading this tutorial, you will be able to program non-trivial PyQt5 applications. The code examples are availabe at the author's PyQt5-Tutorial-Examples repository.

Python PyQt6 covers the latest version of PyQt.

Table of contents
Introduction
Date and time
First programs
Menus and toolbars
Layout management
Events and signals
Dialogs
Widgets
Widgets II
Drag & drop
Painting
Custom widgets
The Tetris game
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter