mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 17:48:27 +08:00
新增复制功能
This commit is contained in:
parent
df96b2fd7f
commit
9f61096967
@ -8,7 +8,7 @@ Certainty: possible
|
||||
Check: binaries
|
||||
Type: binary, udeb
|
||||
Priority: optional
|
||||
Depends: python3, python3-pil, libc6, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal, python3-dbus, python3-pip, p7zip-full, sudo
|
||||
Depends: python3, python3-pil, libc6, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal, python3-dbus, python3-pip, p7zip-full, sudo, python3-pyperclip
|
||||
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, qemu-user, binfmt-support, qemu-user-static
|
||||
Section: utils
|
||||
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52, spark-deepin-wine-runner
|
||||
|
@ -14,6 +14,7 @@ import os
|
||||
import sys
|
||||
import time
|
||||
import json
|
||||
import pyperclip
|
||||
import random
|
||||
import base64
|
||||
import shutil
|
||||
@ -1880,7 +1881,10 @@ class ValueCheck():
|
||||
if file == "":
|
||||
return
|
||||
try:
|
||||
QtWidgets.QInputDialog.getText(window, "值", "计算得到的值", QtWidgets.QLineEdit.Normal, self.link[types](self, file))
|
||||
value = self.link[types](self, file)
|
||||
if QtWidgets.QInputDialog.getText(window, "值", "下面是计算得到的值,<b>是否要复制到剪切板?</b>", QtWidgets.QLineEdit.Normal, value)[1]:
|
||||
pyperclip.copy(value)
|
||||
QtWidgets.QMessageBox.information(window, "提示", "复制成功!")
|
||||
except:
|
||||
traceback.print_exc()
|
||||
QtWidgets.QMessageBox.critical(window, "错误", traceback.format_exc())
|
||||
|
Loading…
Reference in New Issue
Block a user