Skip to content

Tui

patiencepilot.tui

Console script entry point for the Patience Pilot TUI.

main

main(argv: Sequence[str] | None = None) -> int

Run the Textual terminal user interface.

Source code in src/patiencepilot/tui.py
 9
10
11
12
13
14
15
16
17
18
def main(argv: Sequence[str] | None = None) -> int:
    """Run the Textual terminal user interface."""
    try:
        tui_module = import_module("patiencepilot.ui.tui")
    except ModuleNotFoundError as error:
        if error.name == "textual":
            print("patiencepilot-tui and patp-tui require Textual. Install with: patiencepilot[tui]")
            return 2
        raise
    return tui_module.main(argv)