랭킹으로 돌아가기

pythonguis/pythonguis-examples

Pythonpythonguis.com

Build desktop apps built with Python. Examples for PyQt6, PySide6, Flet, DearPyGUI, Kivy, NiceGUI, Streamlit, Tkinter, PyQt5 & PySide2

pythonpython3pyqtpyqt5pyqt5-tutorialqtdesignerdesktop-applicationexample-appdesktoppython-appspython-guigui
스타 성장
스타
4.6k
포크
1.1k
주간 성장
이슈
12
2k4k
2024년 2월2024년 11월2025년 9월2026년 7월
아티팩트PyPIpip install pythonguis-examples
README

Python GUIs Examples

This repository contains 100s of GUI examples written in Python. From complete working applications to reusable widgets snippets, these examples can be freely re-used, re-mixed and tweaked to build your own Python GUI applications.

Contributions Welcome

This repo is an open collaborative collection of UI demonstrations, tutorials and examples for Python. New additions are welcome, just fork this repository, add your example code file(s) in the [library]/[type]/[folder-name] and open a pull request.

Browse this repo

Examples are available for PyQt6 and PySide6, (many examples) along with DearPyGui, Flet, Kivy, NiceGUI, PyQt5 PySide2 Streamlit and Tkinter

Not sure which library to use? See our Which Python GUI? guide.

Many of these examples have more detailed write-ups on the Python GUIs website. See the source code for example to get links to the specific tutorials.

If you're new to creating GUI apps check out the introductory PyQt6 tutorial or PySide6 tutorial.

Demo Showcase

Some particularly neat examples of UIs build using Python are linked below. The full source code for these examples is available in this repo. In some cases there are also step by step examples of the app being built.

  1. Web Browser (untabbed) - "MooseAche" PyQt6 PySide6
  2. Web Browser (tabbed) - "Mozzarella Ashbadger" PyQt6 PySide6
  3. Minesweeper - "Moonsweeper" PyQt6 PySide6
  4. Notepad - "No2Pads" PyQt6 PySide6
  5. Calculator - "Calculon" (QtDesigner) PyQt6 PySide6
  6. Word Processor - "Megasolid Idiom" PyQt6 PySide6
  7. Webcam/Snapshot - "NSAViewer" PyQt6 PySide6
  8. Media Player - "Failamp" PyQt6 PySide6
  9. Post-it Notes - "Brown Note" (QtDesigner) PyQt6 PySide6
  10. Paint - "Piecasso" (QtDesigner) PyQt6 PySide6
  11. Unzip - "7Pez" (QtDesigner) PyQt6 PySide6
  12. Translator - "Translataarrr" (QtDesigner) PyQt6 PySide6
  13. Weather - "Raindar" (QtDesigner) PyQt6 PySide6
  14. Currency converter - "Doughnut" (PyQtGraph) PyQt6 PySide6
  15. Solitaire - "Ronery" (QGraphicsScene) PyQt6 PySide6

This is just a selection of the demos in this repo, pick a library and look under the demos/ folder.

Tutorials

Alongside the demos we also have step by step tutorial code, taken from our main site at pythonguis.com. These guide you through building GUIs with PyQt, PySide and other libraries. For example example there is a link back to the tutorial (and vice versa).

Getting started

To use each app you first need to install the requirements. In most cases the only requirements are the GUI library and occasionally requests. To install example specific requirements change to the folder of the example and run:

pip3 install -r requirements.txt

Once the requirements are installed, you can run the app. Every example in this repo comes with a main Python file called main.py to keep things simple.

python3 main.py

The application window should appear.

Want to build your own apps?

If you think these apps are neat and want to learn more about take a look at my PyQt6 tutorial which covers everything you need to know to start building your own applications with Python.

You can also find more write-ups and tips on the same site.

Books & Courses

This repository and the Python GUIs website are both projects of Martin Fitzpatrick -- hello! I've written a number of popular books & courses on Python GUI programming, which you can find here https://www.pythonguis.com/books

Need help with your Python GUI project? I'm available to hire

Licenses

All code is licensed under an MIT license. This allows you to re-use the code freely, remixed in both commercial and non-commercial projects. The only requirement is to include the same license when distributing.

Icons used in the applications are by Yusuke Kamiyaman.

관련 저장소
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

PythonPyPIOtherprogrammingdevelopment
358.7k57.3k
vinta/awesome-python

An opinionated list of Python frameworks, libraries, tools, and resources

PythonPyPIOtherawesomepython
awesome-python.com
309.6k28.4k
practical-tutorials/project-based-learning

Curated list of project-based tutorials

PythonPyPIMIT Licensetutorialproject
274.6k35.4k
TheAlgorithms/Python

All Algorithms implemented in Python

PythonPyPIMIT Licensepythonalgorithm
thealgorithms.github.io/Python/
223k50.9k
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

C++Apache License 2.0tensorflowmachine-learning
tensorflow.org
196.5k75.7k
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

PythonPyPIOtheraiopenai
agpt.co
185.6k46.1k
CyC2018/CS-Notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

algorithmleetcode
cyc2018.xyz
184.8k50.8k
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

PythonPyPIThe Unlicenseyoutube-dlpython
discord.gg/H5MNcFW63r
179.4k15.3k
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

PythonPyPIgithubhellogithub
hellogithub.com
166.5k12.4k
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

PythonPyPIApache License 2.0nlpnatural-language-processing
huggingface.co/transformers
162.8k34k
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

TypeScriptnpmOtheraigpt
dify.ai
149.7k23.6k
langchain-ai/langchain

The agent engineering platform.

PythonPyPIMIT Licenseaianthropic
docs.langchain.com/langchain/
142.3k23.7k