20 lines
433 B
Python
Executable file
20 lines
433 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import webview
|
|
import platform
|
|
from os import _exit
|
|
from time import sleep
|
|
from backend import app
|
|
|
|
|
|
if __name__ == "__main__":
|
|
window = webview.create_window(
|
|
"badl - BiliBili Audio Downloader", app, width=500, height=700
|
|
)
|
|
if os := platform.system() == "Linux":
|
|
gui = "gtk"
|
|
elif os == "Windows":
|
|
gui = "edgehtml"
|
|
else:
|
|
gui = ""
|
|
webview.start(gui=gui)
|