Files
MCM/tui_standalone.py
itdrui.de 23fb37cb1a fix: textual-serve als Web-Frontend statt python -m textual serve
textual serve (python -m textual) startete immer die eingebaute Demo.
Lösung: textual-serve Paket (v1.1.3) mit eigenem serve_tui.py Einstiegspunkt.
Pro Browser-Verbindung wird tui_standalone.py als eigener Subprocess gestartet.

Starten: python serve_tui.py --host 0.0.0.0 --port 8001
2026-03-13 14:12:25 +01:00

21 lines
462 B
Python
Raw Permalink 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.
Wird von serve_tui.py per textual-serve als Subprocess pro Browser-Session gestartet.
Kann auch direkt im Terminal gestartet werden.
Verwendung:
# Direkt im Terminal:
python tui_standalone.py
# Als Browser-App via serve_tui.py:
python serve_tui.py
"""
from tui.app import MCMApp
# Für textual serve (ältere Variante) Klasse als Factory
app = MCMApp
if __name__ == "__main__":
MCMApp().run()