diff --git a/Icon/Program/about-background.png b/Icon/Program/about-background.png new file mode 100755 index 0000000..f6a957c Binary files /dev/null and b/Icon/Program/about-background.png differ diff --git a/mainwindow.py b/mainwindow.py index 0e5d572..fb6a71d 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -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