Files
pywebview/examples/file_dialog.py
Roman Sirokov 9a663cd3b8 Update examples
Update documentation
2015-10-06 16:16:07 +03:00

20 lines
400 B
Python

import webview
import threading
"""
This example demonstrates creating an open file dialog.
"""
def open_file_dialog():
import time
time.sleep(5)
print(webview.create_file_dialog(webview.OPEN_DIALOG, allow_multiple=True))
if __name__ == '__main__':
t = threading.Thread(target=open_file_dialog)
t.start()
webview.create_window("Simple browser", "http://www.flowrl.com")