修改关于窗口背景

This commit is contained in:
gfdgd_xi 2024-01-29 19:30:05 +08:00
parent 4c940403bd
commit 53b16c9d35
2 changed files with 3 additions and 0 deletions

BIN
Icon/Program/about-background.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@ -1834,6 +1834,9 @@ def showhelp():
helpWindow.setFixedSize(int(helpWindow.frameSize().width() * 0.9), int(helpWindow.frameSize().height() * 1.5))
helpWindow.setWindowTitle("帮助")
helpWindow.setWindowIcon(QtGui.QIcon(iconPath))
# 设置背景
helpWindow.setObjectName("helpWindow")
helpWindow.setStyleSheet(f"QWidget#helpWindow {{background: url({programPath}/Icon/Program/about-background.png) no-repeat;background-position: left bottom;}}")
helpWindow.show()
return