DEV Community

MrRobot
MrRobot

Posted on

Dear PyGui – GPU Accelerated GUI Framework

Dear PyGui is a Python library for creating fast, GPU-accelerated graphical user interfaces. It provides an easy-to-use API for building windows, buttons, sliders, plots, and more, suitable for both simple tools and complex applications. With real-time rendering and support for custom widgets, Dear PyGui is ideal for applications requiring high performance, such as visualization tools, dashboards, or interactive simulations.


Installation:

pip install dearpygui
Enter fullscreen mode Exit fullscreen mode

Example usage:

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

def on_button_click(sender, data):
    log_info("Button clicked!")

with window("Example Window"):
    add_text("Hello, Dear PyGui!")
    add_button("Click Me", callback=on_button_click)

start_dearpygui()
Enter fullscreen mode Exit fullscreen mode

PyPI page: https://pypi.org/project/dearpygui/
GitHub page: https://github.com/hoffstadt/DearPyGui


3 Project Ideas:

  1. Build an interactive data visualization tool with real-time plotting.
  2. Develop a GPU-accelerated control panel for simulations or robotics.
  3. Create a desktop application for monitoring and controlling IoT devices.

Top comments (0)