DearPyGui

Dear PyGui: A Bloat-free Graphical User Interface for Python with minimal dependencies

Github星跟踪图

Logo

(This library is available under a free and permissive license)

Python Version
PYPI
Downloads

build status
Build status

Dear PyGui is a simple to use (but powerful) Python GUI framework. Dear PyGui provides a wrapping of Dear ImGui which simulates a traditional retained mode GUI (as opposed to Dear ImGui's immediate mode paradigm).

Themes

Dear PyGui is fundamentally different than other Python GUI frameworks. Under the hood, Dear PyGui
uses the immediate mode paradigm and your computer's GPU to facilitate extremely dynamic interfaces. Dear PyGui is currently supported on
the following platforms:, Platform, Rendering API, ----------, ---------------, Windows 10, DirectX 11, macOs, Metal, Linux, OpenGL3, 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., Installing - Usage - Resources - Features - Support - Building, :----------------------------------------------------------:, Upcoming changes - Gallery - Sponsors - Credits - License, ### Installation


Ensure you have at least Python 3.6.

pip install dearpygui
or
pip3 install dearpygui

Resources


  • DearPyGui-Examples repository for example usage.
  • Tutorials for getting started.
  • Online Documentation for official documentation.
  • Internal Documentation: Run the show_documentation command from within the library to view an reference guide.
  • Complete Demo: You can also view a mostly complete showcase of Dear PyGui by running the show_demo command found in dearpygui.demo.

Usage


Using Dear PyGui is a simple as creating a python script like the one below:

Code:

from dearpygui.core import *
from dearpygui.simple import *

def save_callback(sender, data):
    print("Save Clicked")

with window("Example Window"):
    add_text("Hello world")
    add_button("Save", callback=save_callback)
    add_input_text("string")
    add_slider_float("float")

start_dearpygui()

Result:
BasicUsageExample

Some Features


Plotting/Graphing

Dear PyGui includes a plotting API (ImPlot Wrapping)




Themes

Dear PyGui currently includes 10 themes and you can create your own:
Themes

Canvas

Dear PyGui includes a drawing API to create custom drawings, plot, and even 2D games.
BasicUsageExample

Tools

Dear PyGui includes several tools to help developers with DearPyGui app development including built-in documentation, logging, source viewer, and other tools:
BasicUsageExample

Support


  • Sponsor If you enjoy Dear PyGui please consider becoming a sponsor.
  • Paypal For those who don't like rewards.

If you are having issues or want to help, here are some places you can go:

Building


Upcoming Changes


Some upcoming features:

  • An object oriented interface
  • Support for window docking and multiple viewports.
  • 3D widget.
  • Custom Widget API.

Sponsors


Ongoing Dear PyGui development is financially supported by users and private sponsors.

These include:

Thank you to all other sponsors for keeping this project moving forward!

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

Aiekick for his work on the ImGuiFileDialog


StandardWindowsExample1
StandardWindowsExample1

License


Dear PyGui is licensed under the MIT License.

主要指标

概览
名称与所有者hoffstadt/DearPyGui
主编程语言C++
编程语言CMake (语言数: 9)
平台
许可证MIT License
所有者活动
创建于2020-05-28 17:12:57
推送于2025-04-17 01:38:28
最后一次提交2025-04-16 20:38:26
发布数27
最新版本名称v2.0.0 (发布于 )
第一版名称v0.1.3 (发布于 )
用户参与
星数14.1k
关注者数163
派生数711
提交数2.9k
已启用问题?
问题数1423
打开的问题数361
拉请求数429
打开的拉请求数17
关闭的拉请求数81
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?