Added more experimental ui stuff and renamed ui.py to webui.py.

This commit is contained in:
2026-04-09 12:24:41 +02:00
parent 1980716d3b
commit d74534965c
3 changed files with 27 additions and 13 deletions

17
webui.py Normal file
View File

@@ -0,0 +1,17 @@
from nicegui import ui
from main import bot
# reminder:
# tracked_games etc erst in andere variable kopieren und lock benutzen.
def create_ui():
ui.label("Amogus")
with bot.tracked_games_lock:
games = list(bot.tracked_games)
rows = []
for game in games:
rows.append({"Name": game.name})
ui.table(rows=rows)