diff --git a/bin/DataCreating_Click.py b/bin/DataCreating_Click.py index 8ddb6d5..a51fee6 100644 --- a/bin/DataCreating_Click.py +++ b/bin/DataCreating_Click.py @@ -5,10 +5,16 @@ import sys from GUIWindows import Window from PySide6.QtWidgets import QApplication 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__': app = QApplication([]) - app.setStyle("Fusion") + app.setStyle("Fusion") + app.setWindowIcon(QIcon(str(ui_file_patch))) # 样式 # print(QtWidgets.QStyleFactory.keys()) # print(app.style().name()) diff --git a/images/bjx.png b/images/bjx.png new file mode 100644 index 0000000..1dc19ca Binary files /dev/null and b/images/bjx.png differ