上传初版

This commit is contained in:
2026-07-10 13:35:16 +08:00
parent 38610e97eb
commit 4c5fc718c1
21 changed files with 855 additions and 593 deletions
+14 -20
View File
@@ -1,25 +1,19 @@
"""main.py - MIL SDK 测试示例"""
from pathlib import Path
from src.core import (
setup_logging,
read_excel_data,
read_excel_case,
create_excel_case,
update_case_excel,
)
from main_ui import Ui_MainWindow
from PySide6.QtWidgets import QApplication, QMainWindow
import sys
from qt_material import apply_stylesheet
def main() -> None:
"""MIL SDK 示例程序主函数"""
setup_logging()
class MainWindow(QMainWindow,Ui_MainWindow):
def __init__(self):
super().__init__()
self.setupUi(self)
excel_path = Path(__file__).parent
data_dict = read_excel_data("new_data.xlsx", return_object=False)
old_data_dict = read_excel_data("old_data.xlsx", return_object=False)
update_case_excel("new_case.xlsx", old_data_dict, data_dict)
apply_stylesheet(self, style=None,theme='dark_teal.xml')
if __name__ == "__main__":
main()
if __name__ == '__main__':
app = QApplication(sys.argv)
main: MainWindow = MainWindow()
main.show()
sys.exit(app.exec())