mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-03 01:17:44 +00:00
20 lines
400 B
Python
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")
|
|
|