dataCreatingGUI/bin/DataCreating_Click.py

29 lines
740 B
Python
Raw Normal View History

2024-02-11 11:38:52 +00:00
# -*- coding:utf-8 -*-
import _load
import sys
from GUIWindows import Window
from PySide6.QtWidgets import QApplication
from PySide6 import QtWidgets
2024-02-14 09:12:33 +00:00
from PySide6.QtGui import QIcon
from pathlib import Path
path = Path(__file__)
2024-02-14 13:33:54 +00:00
ico_file_patch = path.parent.parent / "images" / "bjx.png"
css_file_patch = path.parent.parent / "ui" / "style.qss"
2024-02-11 11:38:52 +00:00
if __name__ == '__main__':
app = QApplication([])
2024-02-14 09:12:33 +00:00
app.setStyle("Fusion")
2024-02-14 13:33:54 +00:00
app.setWindowIcon(QIcon(str(ico_file_patch)))
# 样式
# print(QtWidgets.QStyleFactory.keys())
# print(app.style().name())
2024-02-14 13:33:54 +00:00
with open(css_file_patch,"r") as cssfile:
_style = cssfile.read()
app.setStyleSheet(_style)
2024-02-11 11:38:52 +00:00
win = Window()
win.ui.show()
2024-02-11 11:38:52 +00:00
sys.exit(app.exec())