Files
system-installer-daemon/src/system-installer-web-client
2025-04-03 21:23:49 +02:00

22 lines
562 B
Python
Executable File

#!/usr/bin/env python3
import webview
LOCATION = "http://10.10.99.22:8080/welcome"
#LOCATION = "http://localhost:8080/welcome"
def on_closed():
"""
Actions to take when System Installer is closed.
"""
print('pywebview window is closed')
window = webview.create_window('System Installer', LOCATION,
transparent=True, easy_drag=False, frameless=True,
width=1050, focus=True, zoomable=True,
confirm_close=True, resizable=True)
window.events.closed += on_closed
webview.start()