25 lines
601 B
Python
25 lines
601 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
import sys
|
||
|
|
|
||
|
|
def run_tui(stdscr):
|
||
|
|
from controllers.game_ctrl import GameController
|
||
|
|
app = GameController(stdscr)
|
||
|
|
app.run_login()
|
||
|
|
|
||
|
|
def main():
|
||
|
|
if "--tui" in sys.argv:
|
||
|
|
import curses
|
||
|
|
try:
|
||
|
|
curses.wrapper(run_tui)
|
||
|
|
except KeyboardInterrupt:
|
||
|
|
print("\nSpiel beendet. Bis zum nächsten Mal!")
|
||
|
|
sys.exit(0)
|
||
|
|
else:
|
||
|
|
# Standard ist nun die neue, aufgeteilte GUI!
|
||
|
|
from controllers.gui_ctrl import GuiController
|
||
|
|
app = GuiController()
|
||
|
|
app.start()
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|