Files
pywebview/examples/confirm_close.py
Roman Sirokov 6ff1058158 Rename confirm_quit to confirm_close
Split lifecycle events to shown and loaded
2019-05-06 06:09:17 +03:00

13 lines
347 B
Python

import webview
"""
This example demonstrates a webview window with a quit confirmation dialog.
"""
if __name__ == '__main__':
# Create a standard webview window
webview.create_window('Confirm Quit Example',
'https://pywebview.flowrl.com/hello',
confirm_close=True)
webview.start()