launcher/launcher/webview/__init__.py
2025-01-25 17:49:17 +08:00

18 lines
393 B
Python

import webview
from launcher.sys_config import sys_config
from launcher.webview.api import Api
window = None
def start_webview():
global window
window = webview.create_window(
f"mower-ng launcher {sys_config.get('version')}",
sys_config.get("url"),
js_api=Api(),
width=850,
height=600,
)
webview.start(debug=sys_config.get("debug"))