Skip to content

Lesson 01 · Desktop Apps with Python & Qt

Desktop: Windows, Widgets & Layouts with PySide6

Build real native windows on your own machine with Python and Qt: install PySide6, learn the QApplication and QMainWindow anatomy, and arrange widgets with box and grid layouts.

Prerequisites: Object-oriented design

Learning objectives
By the end of this lesson, you will be able to:
  • Explain what makes desktop development different from web and console programs
  • Install PySide6 with pip and describe what the package provides
  • Run a QApplication with a QMainWindow and know what each piece does
  • Build interfaces from QLabel, QPushButton, QLineEdit and QTextEdit
  • Arrange widgets with QVBoxLayout, QHBoxLayout and QGridLayout instead of hardcoded positions