Files
system-installer-daemon/src/system-installer-web-client
Jonathan Carter 007a959274 some more ui work
2025-07-03 22:11:08 +02:00

21 lines
516 B
Python
Executable File

#!/usr/bin/env python3
import webview
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()