https://github.com/romanin-rf/dearfy
A library for simplifying the creation of complex GUIs using DearPyGUI.
https://github.com/romanin-rf/dearfy
dear-imgui dearpygui python simplify-framework
Last synced: 4 months ago
JSON representation
A library for simplifying the creation of complex GUIs using DearPyGUI.
- Host: GitHub
- URL: https://github.com/romanin-rf/dearfy
- Owner: romanin-rf
- License: mit
- Created: 2025-05-16T09:19:27.000Z (5 months ago)
- Default Branch: dev
- Last Pushed: 2025-05-22T19:39:31.000Z (5 months ago)
- Last Synced: 2025-06-06T04:33:04.227Z (5 months ago)
- Topics: dear-imgui, dearpygui, python, simplify-framework
- Language: Python
- Homepage:
- Size: 136 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dearfy
## Desription
A library to simplify the creation of complex applications using DearPyGUI (based on DearImGUI).## Using
```python
from dearfy.app import App, action
from dearfy.widgets import *
from dearfy.handlers import ClickedHandler
from dearfy.typing import Tagclass MyApp(App):
def compose(self) -> ComposeResult:
with Window(label='Title'):
with Group(horizontal=True):
with Text('Click for SURPRISE: '):
yield ClickedHandler(callback='test0')
yield Button(label='*click*', callback='test1')
# Attribute handling is used,
# i.e. all functions that start with `action_` will be wrapped in `Action`.
def action_test0(self, sender: Tag):
print('!!! SURPRISE #1 !!!')
# And it is possible not to write them through self,
# although if you decide to do it,
# you will have to wrap them in the action decorator anyway.
@action('test1')
def action_test1(self):
print('!!! SURPRISE #2 !!!')
```## Installing
So far, the project is still under development. So I don't recommend to use it as a basis for any project.