新增程序图标
BIN
Icon/Function/CHROOT.png
Normal file → Executable file
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 22 KiB |
BIN
Icon/Function/more-wine.png
Normal file → Executable file
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 62 KiB |
BIN
Icon/Function/wine.png
Normal file → Executable file
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 67 KiB |
BIN
Icon/Function/wine23A.png
Normal file → Executable file
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 75 KiB |
BIN
Icon/Function/wine23P.png
Normal file → Executable file
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 75 KiB |
@ -2492,7 +2492,7 @@ getLoseDll = QtWidgets.QPushButton(transla.transe("U", "检测静态下程序缺
|
|||||||
getLoseDll.clicked.connect(GetLoseDll)
|
getLoseDll.clicked.connect(GetLoseDll)
|
||||||
programManager.addWidget(QtWidgets.QLabel(" "*5), 1, 9, 1, 1)
|
programManager.addWidget(QtWidgets.QLabel(" "*5), 1, 9, 1, 1)
|
||||||
programManager.addWidget(getLoseDll, 1, 10, 1, 1)
|
programManager.addWidget(getLoseDll, 1, 10, 1, 1)
|
||||||
programManager.addItem(QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum), 1, 9, 1, 1)
|
programManager.addItem(QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum), 1, 11, 1, 1)
|
||||||
programManager.addWidget(QtWidgets.QLabel(transla.transe("U", "WINE配置:")), 2, 0, 1, 1)
|
programManager.addWidget(QtWidgets.QLabel(transla.transe("U", "WINE配置:")), 2, 0, 1, 1)
|
||||||
wineConfig = QtWidgets.QPushButton(transla.transe("U", "配置容器"))
|
wineConfig = QtWidgets.QPushButton(transla.transe("U", "配置容器"))
|
||||||
wineConfig.clicked.connect(lambda: RunWineProgram("winecfg"))
|
wineConfig.clicked.connect(lambda: RunWineProgram("winecfg"))
|
||||||
@ -2554,12 +2554,12 @@ mainLayout.addWidget(programRun, 2, 1, 1, 1)
|
|||||||
# 菜单栏
|
# 菜单栏
|
||||||
menu = window.menuBar()
|
menu = window.menuBar()
|
||||||
programmenu = menu.addMenu(transla.transe("U", "程序(&P)"))
|
programmenu = menu.addMenu(transla.transe("U", "程序(&P)"))
|
||||||
p1 = QtWidgets.QAction(transla.transe("U", "安装 wine(&I)"))
|
p1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine.png"), transla.transe("U", "安装 wine(&I)"))
|
||||||
installWineOnDeepin23 = QtWidgets.QAction(transla.transe("U", "安装 wine(只限Deepin23 Preview)"))
|
installWineOnDeepin23 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine23P.png"), transla.transe("U", "安装 wine(只限Deepin23 Preview)"))
|
||||||
installWineOnDeepin23Alpha = QtWidgets.QAction(transla.transe("U", "安装 wine(只限Deepin23 Alpha)"))
|
installWineOnDeepin23Alpha = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine23A.png"), transla.transe("U", "安装 wine(只限Deepin23 Alpha)"))
|
||||||
installWineHQ = QtWidgets.QAction(transla.transe("U", "安装 WineHQ"))
|
installWineHQ = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine.png"), transla.transe("U", "安装 WineHQ"))
|
||||||
installMoreWine = QtWidgets.QAction(transla.transe("U", "安装更多 Wine"))
|
installMoreWine = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/more-wine.png"), transla.transe("U", "安装更多 Wine"))
|
||||||
downloadChrootBottle = QtWidgets.QAction(transla.transe("U", "下载 Chroot 容器"))
|
downloadChrootBottle = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/CHROOT.png"), transla.transe("U", "下载 Chroot 容器"))
|
||||||
p2 = QtWidgets.QAction(transla.transe("U", "设置程序(&S)"))
|
p2 = QtWidgets.QAction(transla.transe("U", "设置程序(&S)"))
|
||||||
p3 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), transla.transe("U", "清空软件历史记录(&C)"))
|
p3 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), transla.transe("U", "清空软件历史记录(&C)"))
|
||||||
cleanCache = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), transla.transe("U", "清空软件缓存"))
|
cleanCache = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), transla.transe("U", "清空软件缓存"))
|
||||||
@ -2832,7 +2832,7 @@ unpackDeb = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(32), t
|
|||||||
qemuMenu.addAction(unpackDeb)
|
qemuMenu.addAction(unpackDeb)
|
||||||
unpackDeb.triggered.connect(UnPackage)
|
unpackDeb.triggered.connect(UnPackage)
|
||||||
if len(qemuBottleList) >= 1:
|
if len(qemuBottleList) >= 1:
|
||||||
configMenu = QtWidgets.QAction(transla.transe("U", "配置指定 Chroot 容器"))
|
configMenu = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/CHROOT.png"), transla.transe("U", "配置指定 Chroot 容器"))
|
||||||
qemuMenu.addAction(configMenu)
|
qemuMenu.addAction(configMenu)
|
||||||
configMenu.triggered.connect(ConfigQemu)
|
configMenu.triggered.connect(ConfigQemu)
|
||||||
print(qemuBottleList)
|
print(qemuBottleList)
|
||||||
|