Python GUI libraries

Updated Nov 2026

Python GUI libraries build the windows, buttons, and forms of desktop applications written in Python. These libraries put a desktop interface on internal tools, data apps, and scripts that people run without a terminal.

Popularity

PySide6 has the most installs, while Kivy has the most GitHub stars.

LibraryMonthly downloadsStarsLast releaseLicense
PySide6
4.2M
Not on GitHubOct 2026LGPL / GPL
pywebview
2.3M
6.2KApr 2026BSD-3-Clause
PyQt6
1.7M
Not on GitHubOct 2026GPL-3.0-only
NiceGUI
1.3M
16.3KNov 2026MIT
CustomTkinter
735.6K
13.6KJun 2026MIT
Flet
359.3K
17.6KNov 2026Apache-2.0
Dear PyGui
248.7K
15.7KMay 2026MIT
Kivy
210.1K
19.0KNov 2026MIT
Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Features compared

LibraryDesktop windowsLight/dark appearanceSystem appearance integration
PySide6Built-inBuilt-inBuilt-in
pywebviewBuilt-inUndocumentedUndocumented
PyQt6Built-inBuilt-inBuilt-in
NiceGUIVia pluginBuilt-inBuilt-in
CustomTkinterBuilt-inBuilt-inBuilt-in
FletBuilt-inBuilt-inBuilt-in
Dear PyGuiBuilt-inVia pluginUndocumented
KivyBuilt-inVia pluginVia plugin
Built-inVia pluginNot documented

Libraries and code examples

PySide6 is the official Python module of the Qt for Python project. The module exposes the complete Qt framework, a C++ toolkit for desktop and mobile interfaces, to Python code. Its PyPI wheel includes the Qt libraries, which spares a project from installing Qt on its own. An app creates a QApplication, shows widgets such as a QLabel, then calls app.exec() to run the event loop, which waits for clicks and key presses. The Qt for Python project releases PySide6 under the LGPL. PyQt6 offers the same Qt classes under the GPL or a paid commercial license.

Downloads / mo
4.2M
Last release
6.12.0
License
LGPL / GPL

Strengths

  • Qt comes in the wheel. pip install pyside6 brings the Qt binaries, so Qt needs no separate install.
  • Visual form designer. Lay out Qt Widgets forms by drag and drop in pyside6-designer.

Limitations

  • iOS builds need Xcode. Build and sign the generated iOS project in Xcode.

Quickstart

From widgets.html
$ pip install pyside6
import sys
from PySide6.QtWidgets import QApplication, QLabel

app = QApplication(sys.argv)
label = QLabel("Hello World!")
label.show()
app.exec()

PySide6 examples

From open-source projects on GitHub

pywebview shows an HTML, CSS, and JavaScript interface inside a native desktop window. The window uses the operating system's own web component: WinForms on Windows, Cocoa on macOS, and GTK or Qt on Linux. webview.create_window opens a window on a URL. The GUI loop then runs inside webview.start until the last window closes. A two-way bridge lets JavaScript call Python and Python run JavaScript in the page. Frozen apps, packaged as a single executable, stay small because pywebview bundles no web renderer. NiceGUI also shows HTML in a window but generates it from Python calls.

Downloads / mo
2.3M
Stars
6.2K
Last release
6.2.1
License
BSD-3-Clause

Strengths

  • Two-way JavaScript bridge. Call Python from JavaScript, and run JavaScript from Python.
  • Small frozen executables. A frozen app uses the system's web renderer instead of bundling one.

Limitations

  • The GUI loop blocks. webview.start() blocks until the last window closes, so run backend logic in a separate thread.

Quickstart

From README.md
$ pip install pywebview
import webview
webview.create_window('Hello world', 'https://pywebview.flowrl.com/hello')
webview.start()

pywebview examples

From open-source projects on GitHub

PyQt6 is Riverbank Computing's set of Python bindings for Qt, built as more than thirty-five extension modules that run on desktop, iOS, and Android. A pip install is enough to start, because the GPL wheels on PyPI include a copy of Qt. Each widget emits signals, such as a button's clicked, that connect to any Python function. Riverbank licenses the bindings under the GPL or its own commercial license, never the LGPL that PySide6 uses.

Downloads / mo
1.7M
Last release
6.12.0
License
GPL-3.0-only

Strengths

  • The full Qt toolkit. Use Qt widgets, networking, SQL databases, and OpenGL from Python.
  • Signals and slots. Connect a widget's signal to any Python callable.

Limitations

  • GPL unless commercially licensed. Under the GPL version, the application's own code must use a compatible license.

Quickstart

From python_shell.html
$ pip install PyQt6
from PyQt6.QtWidgets import QApplication, QWidget
a = QApplication([])
w = QWidget()
w.show()
w.hide()

PyQt6 examples

From open-source projects on GitHub

NiceGUI builds a web interface from Python calls and shows it in the browser, or in a desktop window in native mode. Each element is a function such as ui.label or ui.button. Calling ui.run() starts the web server that serves the page. Higher-level elements plot charts, render three-dimensional scenes, show maps, and edit tables. Unlike pywebview, NiceGUI generates the HTML from those calls and reloads the page during development every time the code changes.

Downloads / mo
1.3M
Stars
16.3K
Last release
4.0.0
License
MIT

Strengths

  • Runs in the browser. Create buttons, dialogs, and Markdown with Python calls.
  • Charts, 3D scenes, and tables. Plot charts, render 3D scenes, and work with tables from ready-made elements.

Limitations

  • Desktop mode needs a recent engine. Desktop windows require a recent Chromium or WebKit engine.

Quickstart

From README.md
$ python3 -m pip install nicegui
from nicegui import ui

ui.label('Hello NiceGUI!')
ui.button('BUTTON', on_click=lambda: ui.notify('button was pressed'))

ui.run()

NiceGUI examples

From open-source projects on GitHub

CustomTkinter is a Python UI library based on Tkinter, the toolkit that ships with Python. Its redrawn widgets follow light and dark modes and scale for high-DPI screens on Windows and macOS. Each widget replaces a Tkinter counterpart, such as CTkButton for Button, inside a CTk window, where ordinary Tkinter widgets also work. The set_appearance_mode function follows the system setting or forces light or dark.

Downloads / mo
735.6K
Stars
13.6K
Last release
6.0.0
License
MIT

Strengths

  • Works with Tkinter widgets. Mix CustomTkinter widgets with ordinary Tkinter widgets in one window.
  • Follows the system appearance. In system mode, the app switches between light and dark when the OS does.

Limitations

  • System mode stays light on Linux. Linux doesn't report its appearance mode, so set light or dark explicitly there.

Quickstart

From Readme.md
$ pip3 install customtkinter
import customtkinter

customtkinter.set_appearance_mode("System")  # Modes: system (default), light, dark
customtkinter.set_default_color_theme("blue")  # Themes: blue (default), dark-blue, green

app = customtkinter.CTk()  # create CTk window like you do with the Tk window
app.geometry("400x240")

def button_function():
    print("button pressed")

# Use CTkButton instead of tkinter Button
button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function)
button.place(relx=0.5, rely=0.5, anchor=customtkinter.CENTER)

app.mainloop()

CustomTkinter examples

From open-source projects on GitHub

Flet builds apps for iOS, Android, Windows, macOS, Linux, and the web in Python, with no Dart, Swift, Kotlin, HTML, or JavaScript. The interface comes from more than a hundred and fifty built-in controls. A main function adds them to the page and is passed to ft.run. The flet build command packages the same app for app stores, the desktop, or the web. Web builds can run Python in the browser through Pyodide, a Python runtime for WebAssembly. Extensions add new controls to an app by wrapping existing Flutter packages in Python.

Downloads / mo
359.3K
Stars
17.6K
Last release
1.1.2
License
Apache-2.0

Strengths

  • Packages for every platform. Build the same app for iOS, Android, Windows, Linux, macOS, and the web.
  • Web apps without a server. Web builds run in the browser with WebAssembly and Pyodide.

Quickstart

From index.html
$ pip install 'flet[all]'
import flet as ft 

def main(page: ft.Page): 

 page.add(ft.Text("Hello from Flet!")) 

ft.run(main)

Flet examples

From open-source projects on GitHub

Dear PyGui is a GUI framework for Python that renders on the GPU from C and C++ code. Built-in parts include plots, a node editor, and tools for inspecting themes and runtime metrics. A script calls dpg.create_context and builds windows with functions such as dpg.add_text, then runs the render loop with dpg.start_dearpygui. Plots display over a million data points with zoom and pan. Unlike CustomTkinter, which builds on Tkinter, Dear PyGui draws every widget itself.

Downloads / mo
248.7K
Stars
15.7K
Last release
2.3.1
License
MIT

Strengths

  • Plots large datasets. Plot over 1 million points at 60 fps, with zoom and pan.
  • Built-in node editor. Build node-graph interfaces with the bundled node editor.

Limitations

  • Needs 64-bit Python. Install it on a 64-bit Python 3.8 or later.

Quickstart

From first-steps.html
$ pip install dearpygui
import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=300)

with dpg.window(label="Example Window"):
    dpg.add_text("Hello, world")
    dpg.add_button(label="Save")
    dpg.add_input_text(label="string", default_value="Quick brown fox")
    dpg.add_slider_float(label="float", default_value=0.273, max_value=1)

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

Dear PyGui examples

From open-source projects on GitHub

Kivy is an open-source Python framework for apps that run on Windows, macOS, Linux, Android, and iOS from one codebase, including Raspberry Pi OS on Linux. Written in Python and Cython, Kivy draws its own widgets with OpenGL ES, a graphics API for embedded and mobile devices, with multitouch input on every widget in the library. An app subclasses App and returns its root widget, such as a Label, from its build method.

Downloads / mo
210.1K
Stars
19.0K
Last release
2.3.2
License
MIT

Strengths

  • Desktop and mobile from one codebase. Run the same code on Windows, macOS, Linux, Android, and iOS.
  • Multitouch widgets. Every Kivy widget supports multitouch.

Limitations

  • iOS builds need macOS. Use macOS and Xcode to build an iOS package.

Quickstart

From basic.html
$ python -m pip install "kivy[base]" kivy_examples
import kivy
kivy.require('2.1.0') # replace with your current kivy version !

from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):

    def build(self):
        return Label(text='Hello world')

if __name__ == '__main__':
    MyApp().run()

Kivy examples

From open-source projects on GitHub

FAQ

Use PySide6 for a full desktop app. It has the most downloads, at 4.2M a month, and it's available under the LGPL. Choose CustomTkinter for a modern look on Tkinter, NiceGUI for a browser interface, or Flet to ship one app to desktop, web, and mobile.

Both wrap Qt, so they offer the same widgets. The difference is the license: PySide6 is available under the LGPL, while PyQt6 comes under the GPL or a commercial license, and its GPL version requires the application's own code to use a compatible license.

Choose PyQt6 for a large app, and Tkinter for a small tool. PyQt6 provides the whole Qt toolkit, including networking, SQL databases, and a visual form designer. Tkinter is Python's standard interface to Tk, and CustomTkinter adds modern widgets with light and dark modes on top of it.

Install a toolkit, create a window, add widgets, and start the event loop. With PySide6, install it with pip, create a QApplication, show a QLabel, and call app.exec().

Dear PyGui suits tools that plot a lot of data. It renders on the GPU, keeps plots with over a million points smooth, and includes a node editor.

For coding agents

Found your GUI library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official