1 Star 0 Fork 0

stlstl / DearPyGui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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

Python Version PYPI Downloads

build status build status

build status build status build status

Dear PyGui is a simple to use (but powerful) Python GUI framework. DearPyGui provides a wrapping of DearImGui that provides a hybrid of a traditional retained mode GUI and Dear ImGui's immediate mode paradigm.

Dear PyGui is fundamentally different than other Python GUI frameworks. Under the hood, DearPyGui uses the immediate mode paradigm allowing for extremely dynamic interfaces. DearPyGui does not use native widgets, but instead draws the widgets using your computer's GPU. DearPyGui 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, DearPyGui provides a simple way for python developers to create quick and powerful GUIs for scripts.

Installing - Usage - Features - Support - Building
Upcoming changes - Gallery - Credits - License

Installing


Ensure you have at least Python 3.7.

pip install dearpygui
or
pip3 install dearpygui

Usage


DearPyGui is an all included GUI framework. A variety of examples demonstrating usage can be found in the Examples folder /Examples. To get started checkout the Tutorials and for all other references visit the Documentation or from within the library by using the show_documentation command.

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

Code:

from dearpygui.dearpygui import *

add_text("Hello world")
add_button("Save", callback="save_callback")
add_input_text("string")
add_slider_float("float")

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

start_dearpygui()

Result:
BasicUsageExample

Some Features


Plotting/Graphing

DearPyGui includes a plotting API (ImPlot Wrapping)

Themes

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

Canvas

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

Tools

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

Support

If you are having issues or want to help or ask for ways you can help, here are some places you can go!

Building

The actual builds of DearPyGui are created through github actions however, to develop and test locally, follow the instructions below. These are not well maintained at the moment and could use some work.


Windows 10

Build Requirements
  • Visual Studio 2019 (windows) with the following workloads:
    • Python development
    • Desktop development with C++
    • Game development with C++
  • git
  • Python 3.7 or 3.8
Instructions
  1. From within a local directory, enter the following bash commands:
git clone --recursive https://github.com/RaylockLLC/DearPyGui
  1. Open the Scripts folder and run the BuildFor32.bat file (or BuildFor64.bat if using 64-bit python).

Linux

Only tested on Ubuntu 20.04

Build Requirements
  • cmake
  • Python 3.7 or 3.8
  • xorg-dev
Instructions
  1. From within a local directory, enter the following bash commands:
git clone --recursive https://github.com/hoffstadt/DearPyGui
  1. Open the Scripts folder.
  2. Open the terminal and type the following commands:
chmod +x BuildForLinux.sh
sudo ./BuildForLinux.sh

Upcoming Changes


Some upcoming features:

  • An object oriented interface
  • Additional Plot types (bar graph, pie chart, etc.)
  • Support for window docking and multiple viewports.
  • 3D widget.
  • Custom Widget API.

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

Gallery



StandardWindowsExample1
StandardWindowsExample1

License


DearPyGui is licensed under the MIT License.

MIT License Copyright (c) 2020 Raylock, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

DearPyGui: A GPU Accelerated Python GUI Framework 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stlstl/DearPyGui.git
git@gitee.com:stlstl/DearPyGui.git
stlstl
DearPyGui
DearPyGui
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891