An async helper for dearpygui
Project description
dearpygui_async
A simple way to integrate some async functionality into your dearpygui application.
Key Features
- Ease of use
- Async callbacks
- Setup & Teardown functions for us with other async applications
Installation
pip install dearpygui-async
Simple Example
import asyncio
import dearpygui.dearpygui as dpg
from dearpygui_async import DearPyGuiAsync # import
dpg_async = DearPyGuiAsync() # initialize
async def save_callback():
await asyncio.sleep(3)
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_async.run() # run; replaces `dpg.start_gui()`
dpg.destroy_context()
License
dearpygui-async
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dearpygui_async-0.1.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for dearpygui_async-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24fadefa63181a08216fd1a1e44770e4f0787ccb1981a02ac8d6e5552473dddc |
|
MD5 | e8bdecefc1706dccde59a735b1368725 |
|
BLAKE2b-256 | e97841bd2e7544aa66aaa56d23747259264f8101add588ff5af22cb3b3a56445 |