mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-06 06:51:36 +01:00
feat: spawn info widget from client.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user