提交图标

This commit is contained in:
halliday2023 2024-02-14 17:12:33 +08:00
parent 13fe7b0a49
commit 04867c9467
2 changed files with 7 additions and 1 deletions

View File

@ -5,10 +5,16 @@ import sys
from GUIWindows import Window from GUIWindows import Window
from PySide6.QtWidgets import QApplication from PySide6.QtWidgets import QApplication
from PySide6 import QtWidgets from PySide6 import QtWidgets
from PySide6.QtGui import QIcon
from pathlib import Path
path = Path(__file__)
ui_file_patch = path.parent.parent / "images" / "bjx.png"
if __name__ == '__main__': if __name__ == '__main__':
app = QApplication([]) app = QApplication([])
app.setStyle("Fusion") app.setStyle("Fusion")
app.setWindowIcon(QIcon(str(ui_file_patch)))
# 样式 # 样式
# print(QtWidgets.QStyleFactory.keys()) # print(QtWidgets.QStyleFactory.keys())
# print(app.style().name()) # print(app.style().name())

BIN
images/bjx.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB