Skip to main content

DearPyGui: A simple Python GUI Toolkit

Project description

Dear PyGui
(This library is available under a free and permissive license however, if you are using Dear PyGui please consider becoming a Sponsor)

Python Version

PYPI

Downloads

build status

static-analysis

Deployment

Documentation Status

Dear PyGui is a simple to use (but powerful) Python GUI framework. Dear PyGui is NOT a wrapping of Dear ImGui in the normal sense. It is a library built with Dear ImGui which creates a unique retained mode API (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 | Graphics API | Newest Version |

|----------|---------------|----------------|

| Windows 10 | DirectX 11 | PYPI |

| macOS | Metal | PYPI |

| Linux | OpenGL 3 | PYPI |

| Raspberry Pi 4 | OpenGL ES | PYPI |

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.

| Installation - Usage - Resources - Support |

:----------------------------------------------------------: |

| Features - Sponsors - Credits - License - Gallery |

Installation

Ensure you have at least Python 3.6 64bit.


pip install dearpygui

or

pip3 install dearpygui

Resources

Chat on Discord

Reddit

import dearpygui.dearpygui as dpg

from dearpygui.demo import show_demo



dpg.create_context()

dpg.create_viewport()

dpg.setup_dearpygui()



show_demo()



dpg.show_viewport()

dpg.start_dearpygui()

dpg.destroy_context()

Usage

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

Code:

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()

Result:


BasicUsageExample

Features

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.

Tools

Dear PyGui includes several tools to help developers with DearPyGui app development:


BasicUsageExample

Support

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

Sponsors

GitHub Sponsors

Open Collective

If you enjoy Dear PyGui please consider becoming a sponsor.

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.

Johann Muszynski for all of his work on imnodes.

License

Dear PyGui is licensed under the MIT License.

Gallery


BasicUsageExample

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

dearpygui-1.3.1-cp310-cp310-win_amd64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

dearpygui-1.3.1-cp310-cp310-manylinux1_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.10

dearpygui-1.3.1-cp310-cp310-macosx_10_6_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.10 macOS 10.6+ x86-64

dearpygui-1.3.1-cp39-cp39-win_amd64.whl (1.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

dearpygui-1.3.1-cp39-cp39-manylinux1_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.9

dearpygui-1.3.1-cp39-cp39-macosx_11_0_arm64.whl (2.1 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

dearpygui-1.3.1-cp39-cp39-macosx_10_6_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.9 macOS 10.6+ x86-64

dearpygui-1.3.1-cp38-cp38-win_amd64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

dearpygui-1.3.1-cp38-cp38-manylinux1_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.8

dearpygui-1.3.1-cp38-cp38-macosx_11_0_arm64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

dearpygui-1.3.1-cp38-cp38-macosx_10_6_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.8 macOS 10.6+ x86-64

dearpygui-1.3.1-cp37-cp37m-win_amd64.whl (1.7 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

dearpygui-1.3.1-cp37-cp37m-manylinux1_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.7m

dearpygui-1.3.1-cp37-cp37m-macosx_10_6_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.7m macOS 10.6+ x86-64

dearpygui-1.3.1-cp36-cp36m-win_amd64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

dearpygui-1.3.1-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.6m

dearpygui-1.3.1-cp36-cp36m-macosx_10_6_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.6m macOS 10.6+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page