Files
MCM/tui/app.py
itdrui.de 0e2a8a6bc0 feat: TUI als Browser-App via textual serve
TUI von direkten Service-Importen auf httpx API-Calls umgestellt.
Neue tui/api_client.py als schlanker async HTTP-Client. Background-
Worker pollt API alle 5s für Echtzeit-Updates. Neuer tui_standalone.py
Entry-Point für 'textual serve --port 8001 tui_standalone.py'.
2026-03-04 20:45:55 +01:00

22 lines
497 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from __future__ import annotations
from textual.app import App
from tui.api_client import MCMApiClient
from tui.screens.main_screen import MainScreen
class MCMApp(App):
"""MCM MultiCustomerMessenger TUI."""
TITLE = "MCM MultiCustomerMessenger"
CSS_PATH = "styles.tcss"
SCREENS = {"main": MainScreen}
def __init__(self) -> None:
super().__init__()
self._api_client = MCMApiClient()
def on_mount(self) -> None:
self.push_screen("main")