badl/main.py

21 lines
433 B
Python
Raw Normal View History

2023-03-04 18:18:39 +08:00
#!/usr/bin/env python3
2023-03-05 00:06:04 +08:00
2023-03-04 18:18:39 +08:00
import webview
2023-03-05 00:06:04 +08:00
import platform
from os import _exit
from time import sleep
2023-03-05 00:17:20 +08:00
from backend import app
2023-03-05 00:06:04 +08:00
2023-03-04 18:18:39 +08:00
if __name__ == "__main__":
window = webview.create_window(
"badl - BiliBili Audio Downloader", app, width=500, height=700
)
2023-03-05 00:06:04 +08:00
if os := platform.system() == "Linux":
gui = "gtk"
elif os == "Windows":
gui = "edgehtml"
else:
gui = ""
2023-03-05 00:17:20 +08:00
webview.start(gui=gui)