feat: spawn info widget from client.py

This commit is contained in:
Yannik Schmidt
2025-02-15 19:43:35 +01:00
parent e35803ce1a
commit a01d8992c0
2 changed files with 19 additions and 13 deletions

View File

@@ -10,6 +10,7 @@ import cache_utils
import imagetools
import webbrowser
import statekeeper
import infowidget
customtkinter.set_appearance_mode("dark")
customtkinter.set_default_color_theme("blue")
@@ -27,6 +28,8 @@ details_elements = []
non_disabled_entry_color = None
all_metadata = None
infowidget_window = None
db = None # app data-backend (i.e. LocalFS or FTP)
CONFIG_FILE = "gamevault_config.json"
@@ -180,9 +183,13 @@ def load_main():
'''Load the main page overview'''
global all_metadata
global infowidget_window
app.title("Lan Vault: Overview")
if not infowidget_window:
infowidget_window = infowidget.ProgressBarApp(app)
# navbar should not expand when window is resized
app.grid_rowconfigure(0, weight=0)
# buttongrid (scrollable frame) should expand when window is resized