13 lines
358 B
Python
13 lines
358 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())
|
|
webview.start(debug=sys_config.get('debug'))
|