Added more experimental ui stuff and renamed ui.py to webui.py.
This commit is contained in:
17
webui.py
Normal file
17
webui.py
Normal 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)
|
||||
Reference in New Issue
Block a user