支持调用GXDE的deepin-terminal-gtk

This commit is contained in:
2024-07-15 12:52:51 +08:00
parent f9e9a4eb72
commit 18ce8a080f
3 changed files with 12 additions and 1 deletions

View File

@@ -142,6 +142,10 @@ def runexebutton(self):
class QT:
message = None
def ShowWineReturn(things):
global unUseLnk
unUseLnk = True
# 不显示超链接
#returnText.setStyleSheet(returnText.styleSheet() + "a {color: white; text-decoration: none;}")
returnText.insertPlainText(things)
def ShowHistory(temp):
@@ -2718,8 +2722,11 @@ returnText = QtWidgets.QTextBrowser()
getUpdate = GetUpdateToShow()
getUpdate.signal.connect(returnText.setHtml)
getUpdate.start()
unUseLnk = False
def ReturnTextOpenUrl(url):
print(url)
if unUseLnk:
return
if url.url() == "http://update.gfdgdxi.top/update-wine-runner":
UpdateWindow.ShowWindow()
elif url.url() == "http://update.gfdgdxi.top/information-wine-runner":