忘记添加事件

This commit is contained in:
gfdgd xi 2023-07-11 10:01:55 +08:00
parent fffb56c098
commit cf0be8a2f1

View File

@ -14,12 +14,12 @@ import os
import sys import sys
import time import time
import json import json
import pyperclip
import random import random
import base64 import base64
import shutil import shutil
import hashlib import hashlib
import platform import platform
import pyperclip
import threading import threading
import traceback import traceback
import webbrowser import webbrowser
@ -3014,6 +3014,8 @@ installLib.addAction(runnerlibinfo)
installLib.addAction(statusRunnerLib) installLib.addAction(statusRunnerLib)
installLib.addAction(installRunnerLib) installLib.addAction(installRunnerLib)
installLib.addAction(removeRunnerLib) installLib.addAction(removeRunnerLib)
installRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/install.sh'"]))
removeRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/install.sh'"]))
if os.path.exists(f"{programPath}/WineLib/usr/lib/ld-linux-x86-64.so.2"): if os.path.exists(f"{programPath}/WineLib/usr/lib/ld-linux-x86-64.so.2"):
installRunnerLib.setDisabled(True) installRunnerLib.setDisabled(True)
removeRunnerLib.setEnabled(True) removeRunnerLib.setEnabled(True)