Desktop GUI

This page documents the desktop GUI implementation for hid_usb_relay.

Launch the desktop interface with the hid-usb-relay-gui console script.

DearPyGui-based desktop GUI for HID USB relay control.

HIDUSBRelayGUI()

GUI application that owns widgets, theme, and relay operations.

Source code in src\hid_usb_relay\gui.py
21
22
23
def __init__(self) -> None:
    self.service = RelayService()
    self._dpg = None

run_gui()

Run the desktop GUI application.

Source code in src\hid_usb_relay\gui.py
109
110
111
def run_gui() -> None:
    """Run the desktop GUI application."""
    HIDUSBRelayGUI().run()