2024-02-11 11:38:52 +00:00
|
|
|
# -*- coding:utf-8 -*-
|
|
|
|
import _load
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from GUIWindows import Window
|
|
|
|
from PySide6.QtWidgets import QApplication
|
2024-02-11 13:08:12 +00:00
|
|
|
from PySide6 import QtWidgets
|
2024-02-14 09:12:33 +00:00
|
|
|
from PySide6.QtGui import QIcon
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
path = Path(__file__)
|
|
|
|
ui_file_patch = path.parent.parent / "images" / "bjx.png"
|
2024-02-11 11:38:52 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
app = QApplication([])
|
2024-02-14 09:12:33 +00:00
|
|
|
app.setStyle("Fusion")
|
|
|
|
app.setWindowIcon(QIcon(str(ui_file_patch)))
|
2024-02-11 13:08:12 +00:00
|
|
|
# 样式
|
|
|
|
# print(QtWidgets.QStyleFactory.keys())
|
|
|
|
# print(app.style().name())
|
2024-02-11 11:38:52 +00:00
|
|
|
win = Window()
|
2024-02-13 12:35:38 +00:00
|
|
|
win.ui.show()
|
2024-02-11 11:38:52 +00:00
|
|
|
sys.exit(app.exec())
|
|
|
|
|