Hi sir,
I feel that Using function of pywebview is strange. I just want to call a function of pywebview sometimes, not on the beginning. Can you help me?
The demo code as follow:
import webview
import time
def save_file_dialog(window):
time.sleep(5)
result = window.create_file_dialog(webview.SAVE_DIALOG, directory='/', save_filename='test.file')
print(result)
if name == 'main':
window = webview.create_window('Save file dialog', 'https://pywebview.flowrl.com/hello')
webview.start()
save_file_dialog(window)
Specification
Description
Hi sir, I feel that Using function of pywebview is strange. I just want to call a function of pywebview sometimes, not on the beginning. Can you help me?
The demo code as follow:
import webview import time def save_file_dialog(window): time.sleep(5) result = window.create_file_dialog(webview.SAVE_DIALOG, directory='/', save_filename='test.file') print(result) if name == 'main': window = webview.create_window('Save file dialog', 'https://pywebview.flowrl.com/hello') webview.start() save_file_dialog(window)