Tkinter is the GUI toolkit in Python's standard library: small, free of extra dependencies and ideal for simple tools and prototypes. PyQt is a set of Python bindings for the Qt framework: far larger, with modern widgets, designer tooling, graphics and multimedia, but with a bigger learning curve and a GPL or commercial licence. Choose Tkinter for small utilities and teaching; choose PyQt (or its LGPL sibling PySide6) for professional, feature-rich desktop applications.
Both toolkits are cross-platform and run on Windows, macOS and Linux. The differences that matter in practice are the widget set, look and feel, tooling, packaging size and licensing.
Tkinter wraps the Tcl/Tk toolkit and ships with the standard Python installers for Windows and macOS. On some Linux distributions you install it separately, for example the python3-tk package on Debian and Ubuntu. Because it lives in the standard library, a Tkinter program has no third-party dependency to install, audit or update.
The classic tkinter widgets look dated, but the tkinter.ttk module provides themed widgets that follow the native look on each platform. A minimal application looks like this:
Tk() creates the main window, widgets are placed with a geometry manager (pack, grid or place), and mainloop() runs the event loop until the window closes.
PyQt is developed by Riverbank Computing and exposes the Qt C++ framework to Python. The current generation is PyQt6, which targets Qt 6. PyQt5 and Qt 5 are end-of-life, so new projects should start on PyQt6 or PySide6. Install it with pip install PyQt6.
The same example in PyQt6 uses signals and slots instead of a command= callback:
Note that PyQt6 uses app.exec(); the older exec_() spelling was a PyQt5 workaround for Python 2 and is no longer needed.
| Aspect | Tkinter | PyQt6 |
|---|---|---|
| Distribution | Part of the Python standard library | Separate package from PyPI |
| Underlying toolkit | Tcl/Tk | Qt 6 (C++) |
| Widget set | Basic widgets plus ttk themed widgets | Very large: tables, tree views, docks, rich text, charts, web view and more |
| Layout | pack, grid, place | Layout classes such as QVBoxLayout, QGridLayout |
| Events | Callbacks and bind | Signals and slots |
| Design tools | None built in | Qt Designer for visual layouts, Qt Style Sheets for theming |
| Extras | Canvas drawing | Model/view framework, graphics view, multimedia, networking, threads |
| Licence | Python licence (permissive) | GPL v3 or commercial |
| Install size | Tiny | Large (tens to hundreds of MB when frozen) |
Tkinter can be learned in an afternoon. PyQt asks you to understand its object model, layouts, signals and slots, and often the model/view architecture. The payoff is that large applications stay organised.
Tkinter with ttk is acceptable for utilities but hard to make look modern. Qt widgets follow native styles and can be restyled with Qt Style Sheets, which use CSS-like syntax.
PyQt6 is dual licensed under GPL v3 and a commercial licence. If you distribute a closed-source application you need the commercial licence. PySide6, the official Qt for Python binding from the Qt Company, offers almost the same API under the LGPL, which is why many teams prefer it for proprietary software. Check the current licence terms before shipping.
Moving from Tkinter to Qt later means rewriting the UI layer, so decide early when you expect the application to grow.
Yes. It is part of CPython and is updated along with Python releases and the underlying Tcl/Tk library.
Learn PyQt6. Qt 5 has reached end of life and most new documentation and wheels target Qt 6.
Both bind Qt to Python with nearly identical APIs. PyQt comes from Riverbank Computing under GPL or commercial terms, while PySide6 is the official Qt project binding under the LGPL.
It can for simple tools, and some mature programs use it. For rich interfaces, high-DPI polish and advanced widgets, Qt is usually the better fit.
Tkinter is small, built in and perfect for simple tools. PyQt6 is a full application framework with a richer widget set, designer tooling and strong styling, at the cost of a steeper learning curve, a larger footprint and GPL or commercial licensing. If licensing is a concern, evaluate PySide6 alongside PyQt6.