Basic GUI infrastructure

This commit is contained in:
2025-07-28 15:00:25 +02:00
commit 4e1a9f0182
8 changed files with 180 additions and 0 deletions

10
widgets/simple_widget.py Normal file
View File

@ -0,0 +1,10 @@
import dearpygui.dearpygui as dpg
from .base_widget import BaseWidget
class SimpleWidget(BaseWidget):
"""A basic text widget to demonstrate dynamic loading."""
def create(self):
if dpg.does_item_exist(self.window_tag): return
with dpg.window(label="Simple Widget", tag=self.window_tag, on_close=self._on_window_close, width=300, height=120):
dpg.add_text("This widget was loaded dynamically!")
dpg.add_button(label="A Button")