Files
MCM/tui_standalone.py

21 lines
560 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.

"""MCM TUI Standalone Entry Point für textual serve.
Startet nur die TUI (kein API-Server, keine Channels).
Die TUI spricht via HTTP gegen den laufenden MCM-API-Server.
Verwendung:
# API-Server muss bereits laufen:
python main_api_only.py
# TUI im Browser starten:
.venv/bin/python -m textual serve --host 0.0.0.0 --port 8001 tui_standalone.py
# Dann im Browser öffnen: http://<host>:8001
"""
from tui.app import MCMApp
# textual serve erwartet eine Klasse oder Factory-Funktion,
# keine bereits instanziierte App.
app = MCMApp