初步termux支持

This commit is contained in:
2024-07-20 22:24:39 +08:00
parent 3146467477
commit 60f838144d
19 changed files with 393 additions and 14 deletions

View File

@@ -8,7 +8,12 @@ sys.path.append(f"{programPath}/..")
import os
import sys
import json
import dbus
try:
import dbus
except:
os.system("python3 -m pip install --upgrade dbus-python --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple --break-system-packages")
os.system("python3 -m pip install --upgrade dbus-python --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple")
import dbus
import threading
from UI.KeyAddGui import *
import PyQt5.QtWidgets as QtWidgets
@@ -106,4 +111,4 @@ if __name__ == "__main__":
window.show()
threading.Thread(target=Check.CheckThreading).start()
Clear()
sys.exit(app.exec_())
sys.exit(app.exec_())