explaingit

pythonguis/pythonguis-examples

4,573PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

Hundreds of working Python GUI examples covering ten libraries including PyQt6, Tkinter, and Kivy, ranging from simple snippets to complete apps like a browser, media player, and games.

Mindmap

mindmap
  root((repo))
    Libraries Covered
      PyQt6 and PySide6
      Tkinter
      Kivy and Flet
      NiceGUI DearPyGui
    Example Apps
      Web browser
      Media player
      Games
    How to Use
      Find library folder
      Install requirements
      Run main.py
    License
      MIT permissive
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Copy a working example to jump-start your own Python desktop app without starting from scratch.

USE CASE 2

Find ready-to-run reference code for a specific GUI library like PyQt6 or Tkinter.

USE CASE 3

Build a simple desktop tool like a text editor, media player, or browser by adapting an existing demo.

USE CASE 4

Learn Python GUI development by reading and running complete, working example projects.

Tech stack

PythonPyQt6PySide6TkinterKivyFletNiceGUIDearPyGui

Getting it running

Difficulty · easy Time to first run · 5min
MIT license, use, copy, modify, and distribute freely for any purpose including commercial projects.

In plain English

This repository is a collection of hundreds of working Python GUI application examples and reusable code snippets. It covers ten different Python GUI libraries: PyQt6, PySide6, PyQt5, PySide2, Tkinter, Kivy, Flet, NiceGUI, DearPyGui, and Streamlit. Each folder is organized by library, then by application type, so you can quickly find code relevant to the tool you want to use. The examples range from simple beginner snippets to complete demo applications. Included demos cover a tabbed web browser, a minesweeper clone, a paint tool, a media player, a word processor, and a solitaire game. Each demo has a main.py file as the entry point and a requirements.txt listing what to install. Running an example means installing its dependencies with pip and then running python3 main.py. The project is maintained by Martin Fitzpatrick, who also runs the Python GUIs website and has written books and courses on the subject. Many examples link back to step-by-step tutorials on that site, giving context on how each piece of code was built. Tutorials for beginners on PyQt6 and PySide6 are available there as well. All code is released under the MIT license, so you can reuse, modify, and redistribute these examples in personal or commercial projects. Contributions are welcome: fork the repository, add your example in the appropriate library folder, and open a pull request. If you are not sure which GUI library to pick, the README links to a comparison guide on the website. This is a practical reference for anyone learning Python desktop development or looking for working code to adapt. The scope is desktop application windows only, with no backend services, web targets, or mobile builds included.

Copy-paste prompts

Prompt 1
Show me how to adapt the pythonguis-examples PyQt6 media player demo to play audio files from a folder.
Prompt 2
Using the pythonguis-examples Tkinter snippets as a base, create a simple file browser desktop app.
Prompt 3
How do I run the minesweeper example from pythonguis-examples and what dependencies does it need?
Prompt 4
Take the pythonguis-examples paint tool demo and add a color picker widget to it.
Prompt 5
Which pythonguis-examples folder should I look in to find a tabbed browser built with PySide6?
Open on GitHub → Explain another repo

← pythonguis on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.