Python GUI FAQ

Common Python GUI Questions, Answered

Answers to our users most frequently answered questions, from licensing, packaging and libraries, to PyQt tips and tricks.

Showing articles for All (293) PyQt6 (38) PySide6 (9) PyQt5 (136) Streamlit (0) Tkinter (1) PySide2 (12) Kivy (0)

ModuleNotFoundError: No module named 'fbs_runtime'

How to fix the 'fbs_runtime' import error when running fbs projects outside of the fbs environment

QWebEngine in Qt Designer

How to use QWebEngineView and other custom widgets in your Qt Designer layouts

Using Qt Designer .ui Files with fbs for PyQt5 Packaging

Load your Qt Designer interfaces directly in fbs-based applications without converting to Python

Why are signals defined as class variables?

Understanding why PyQt6 and PySide6 signals live on the class, not in __init__

How to Pass Additional Arguments to a QRunnable Worker Function

Solving common errors when passing parameters to threaded Worker functions in PyQt5

How to start/stop or pause running threads?

Control QRunnable workers in PyQt6 with start, stop, and pause functionality

Pause a running worker thread

Put a running task on hold, waiting for the UI

What does @pyqtSlot() do?

Is the pyqtSlot decorator even necessary?

What does @Slot() do?

Is the Slot decorator even necessary?

Understanding QPainter Coordinates in PyQt6

How the coordinate system works for drawing on canvases in PyQt6

Why Omitting "if role == Qt.DisplayRole" Makes Your QAbstractTableModel Look Strange

Understanding Qt roles and why your table suddenly shows checkboxes, checkmarks, and filled squares

How to Check if a QLineEdit is Empty in Python

Empty strings are falsey in Python

AttributeError module 'time' has no attribute 'clock'

Fix PyQtGraph 'time.clock' error in Python 3.8+

How to Add Custom Widgets to Qt Designer

Use widget promotion to integrate your own Python widgets into Qt Designer layouts

Customizing the Size of a PyQtGraph Plot

Control where and how large your PyQtGraph plots appear in your PyQt5 application
1 2 3 4 5 6 7 8 9 10 11 12