DearPyGui: A simple Python GUI Toolkit
Project description
A modern, fast and powerful GUI framework for Python
Features •
Demo •
Support •
Credits •
License •
Features
-
Modern look — Complete theme and style control
-
Great performance — GPU-based rendering and efficient C/C++ code
-
Stable operation — Asynchronous function support
-
Fast graphs — Display over 1 million datapoints at 60 fps, zoom and pan
-
Node editor — Intuitive user interaction
-
Built-in demo — Quickly learn all features
-
Developer tools — Theme and resource inspection, runtime metrics, debugger
-
Cross-platform — Windows, Linux, MacOS
-
MIT license
Installation
Ensure you have at least Python 3.8 64bit.
pip install dearpygui
or
pip3 install dearpygui
How to use?
Using Dear PyGui is as simple as the following Python script.
import dearpygui.dearpygui as dpg
def save_callback():
print("Save Clicked")
dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
with dpg.window(label="Example Window"):
dpg.add_text("Hello world")
dpg.add_button(label="Save", callback=save_callback)
dpg.add_input_text(label="string")
dpg.add_slider_float(label="float")
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Demo
The built-in demo shows all of Dear PyGui's functionality. Use this code to run the demo. The following impression shows a few, but not nearly all, of the available widgets and features. Since the Python code of the demo can be inspected, you can leverage the demo code to build your own apps.
Resources
-
API documentation :books:
Support
If you are having issues or want to help, here are some places you can go.
Tech stack
Dear PyGui is built on top of Dear ImGui, including the ImPlot and imnodes extensions, and is fundamentally different than other Python GUI frameworks. Under the hood, it uses the immediate mode paradigm and your computer's GPU to facilitate extremely dynamic interfaces. In the same manner Dear ImGui provides a simple way to create tools for game developers, Dear PyGui provides a simple way for python developers to create quick and powerful GUIs for scripts. Dear PyGui is written in C/C++ resulting in highly performant Python applications. Dear PyGui is currently supported on the following platforms.
| Platform | Graphics API | Newest Version |
|:---------|:-------------|:---------------|
| Raspberry Pi 4 | OpenGL ES | |
Credits
-
Developed by Jonathan Hoffstadt, Preston Cothren and every direct or indirect contributor.
-
Omar Cornut for all his incredible work on Dear ImGui.
-
Evan Pezent for all his work on ImPlot.
-
Johann Muszynski for all of his work on imnodes.
License
Dear PyGui is licensed under the MIT License.
Sponsor
Continued maintenance and development are a full-time endeavor which we would like to sustain and grow. Ongoing development is financially supported by users and private sponsors. If you enjoy Dear PyGui please consider becoming a sponsor or buy us a cup of coffee.
Gallery
Plotting/Graphing
Dear PyGui includes a plotting API built with ImPlot
Node Editor
Dear PyGui includes a node editor built with imnodes
Canvas
Dear PyGui includes a drawing API to create custom drawings, plot, and even 2D games.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dearpyguiupdated-1.11.2.tar.gz
.
File metadata
- Download URL: dearpyguiupdated-1.11.2.tar.gz
- Upload date:
- Size: 89.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cde0c71738e7341486035216e1fb5267eacd4680c5df3f8819f060de7c89724 |
|
MD5 | 95633b53aa362af8e0f51b4a8f344187 |
|
BLAKE2b-256 | 6fead337bf07030468d7f0432f10c9dfcd76b5df280ef850fd1b0bf9c485a597 |
File details
Details for the file dearpyguiupdated-1.11.2-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: dearpyguiupdated-1.11.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434eaec139913adb07adb0fef99aafbd3d31e6ba7af90ef5fec10df89f9afa9a |
|
MD5 | 1a83cce78bac82e137f6128db26500d8 |
|
BLAKE2b-256 | 4d92cc188dfb4d31a6cfbf22127a4870fb87debb721d81344e441f9297353f71 |