+0
Daily
15,656
stars
790
forks
161
watchers
590
prs
1,507
issues
41
releases
README
A modern, fast and powerful GUI framework for Python
Features •
Installation •
How To Use •
Demo •
Resources •
Support •
Tech stack •
Credits •
License •
Gallery
!Themes
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.
Python
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. To run the demo, you can run:
bash
python -m dearpygui.demo
Or you can 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
- Documentation / Tutorials :books:
- Project status
- FAQ
- Feature Tracker
- Bug Tracker
- Useful code snippets demonstrating best practices
- Showcase apps including source code :star:
- Showcase apps made with older versions of Dear PyGui
- Useful tools and widgets
Support
If you are having issues or want to help, here are some places you can go.
- Discord Forum 💬
- Reddit
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 VersiTop issues
#2289Individual mouse click callback for Node Editor grid & nodes 24 comments · 2024-02-21#773add texture filter/interpolation options for nearest neighbor21 comments · 2021-04-01#2173destroy_context doesn't clean up the window19 comments · 2023-09-10#554Delete widget cause crash if widget is an image 16 comments · 2021-02-06#2464How to set height for listbox16 comments · 2025-01-25#299Chinese path support for select_directory_dialog15 comments · 2020-11-01#88open_file_dialog returns file name without the extension on windows15 comments · 2020-08-20#2164Be able to get mouse position within Node Editor14 comments · 2023-08-23
Discussions
#2670How to get Pylance (VS Code) to play nice with DPG?1 comments · 2026-11-07#2668Fake website?2 comments · 2026-10-16#2655How to set the window to be centered on the display position?0 comments · 2026-05-27#2630ImPlot3D in DPG0 comments · 2026-04-02#2607Please recommend tools for starting a text-related project2 comments · 2026-02-14#2568Split Frame Never Returns1 comments · 2025-10-17#2565Multiple X-Axis support with mvXAxis, mvXAxis2, mvXAxis31 comments · 2025-10-07#2550Changing colors in add_pie_series1 comments · 2025-09-03
Latest release
Version 2.3.1 v2.3.1 2026-05-02News This is a small hotfix release - we're fixing a regression in get_item_info where it lost the "handlers" entry in the returned dict. Changelog Fixes fix: Restored "handlers" entry in item info 2646 Thank You! __Dear PyGui__ development is currently funded by a handful of gracious sponsors and we would like to thank them tremendously. We wouldn't be here with out you guys. Thank you for supporting us. If you or your company uses Dear PyGui, please consider supporting us! We need it now more than ever. Full Changelog: https://github.com/hoffstadt/DearPyGui/comp