hoffstadt /DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies

★ 15,656⑂ 790👁 161⑃ 590● 1,507▤ 41
C++MITCreated 2020-05-28dearpygui.readthedocs.io/en/latest/
下载:Version 2.3.1Version-2.3.1 ↓2.3.12026-05-02
+0
日增长
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 Versi

Top issues

Discussions

Latest release

Version 2.3.1 v2.3.1 2026-05-02
News

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

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON