#!/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()