Cli2gui Index / Cli2gui / Gui / DearPyGuiWrapper
Auto-generated documentation for cli2gui.gui.dearpygui_wrapper module.
Show source in dearpygui_wrapper.py:26
Wrapper class for Dear PyGui.
class DearPyGuiWrapper(AbstractGUI):
def __init__(self, base24Theme: list[str]) -> None: ...
Show source in dearpygui_wrapper.py:80
Create a UI element with an input text field and a file picker.
def _helpFileWidget(self, item: Item) -> None: ...
Show source in dearpygui_wrapper.py:147
Items and groups and return a list of these so we can get values from the dpg widgets.
section
Group - section with a name to display and items
Type: list[Item] flattened list of items
def addItemsAndGroups(self, section: Group) -> list[Item]: ...
Show source in dearpygui_wrapper.py:125
Select a widget based on the item type.
item
Item - the item
def addWidgetFromItem(self, item: Item) -> None: ...
Show source in dearpygui_wrapper.py:191
Run the gui (dpg) with a given buildSpec, quit_callback, and run_callback.
- Theming + Configure dpg
- Menu Prep
- Create Window, set up Menu and Widgets
- Then, start dpg
buildSpec
FullBuildSpec - Full cli parse/ build spec :param Callable[[], None] quit_callback: generic callable used to quit :param Callable[[dict[str, Any]], None] run_callback: generic callable used to run
def main(
self,
buildSpec: FullBuildSpec,
quit_callback: Callable[[], None],
run_callback: Callable[[dict[str, Any]], None],
) -> None: ...
Show source in dearpygui_wrapper.py:177
Open a menu item.
sender
type - file to open_app_data
type - [unused]
def open_menu_item(self, sender: str, _app_data: None) -> None: ...
Show source in dearpygui_wrapper.py:17
Convert a color hex code to a tuple of integers (r, g, b).
def hex_to_rgb(hex_code: str) -> tuple[int, int, int, int]: ...