上传文件至 core
This commit is contained in:
7
core/WebViewWIndow.py
Normal file
7
core/WebViewWIndow.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import webview
|
||||
|
||||
def WebViewWIndow(url: str,title: str,width: int,height: int):#创建Webview窗口
|
||||
webview.create_window(title=title, url=url, width=width, height=height)
|
||||
webview.settings['ALLOW_DOWNLOADS'] = True
|
||||
webview.start(icon="./assets/img/icon.png")
|
||||
exit(0)
|
Reference in New Issue
Block a user