25 lines
513 B
Python
25 lines
513 B
Python
# -*- coding:utf-8 -*-
|
|
from pathlib import Path
|
|
|
|
from PySide6.QtWidgets import QApplication, QMessageBox
|
|
from PySide6.QtUiTools import loadUiType
|
|
|
|
# 定义公共路径
|
|
path = Path(__file__)
|
|
ui_dir = path.parent.parent / "ui"
|
|
ui_file_patch = ui_dir / "ui_main.ui"
|
|
# 从文件中加载UI定义
|
|
formType, baseType = loadUiType(str(ui_file_patch))
|
|
|
|
|
|
class Window(formType, baseType):
|
|
|
|
def __init__(self):
|
|
super(Window, self).__init__()
|
|
self.setupUi(self)
|
|
|
|
|
|
def handleCalc(self):
|
|
pass
|
|
|