mirror of
https://github.com/HChaZZY/Any2MIF.git
synced 2025-12-06 10:33:49 +08:00
35 lines
749 B
Python
35 lines
749 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
# Copyright (c) 2025 Any2MIF Project
|
|
# All rights reserved.
|
|
|
|
"""
|
|
Any2MIF - 任意文件转MIF格式转换器
|
|
主程序入口
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
from PyQt6.QtWidgets import QApplication
|
|
from PyQt6.QtCore import QSettings
|
|
from ui.main_window import MainWindow
|
|
|
|
def main():
|
|
"""主函数"""
|
|
# 创建应用程序实例
|
|
app = QApplication(sys.argv)
|
|
app.setApplicationName("Any2MIF")
|
|
app.setOrganizationName("Any2MIF")
|
|
|
|
# 加载设置
|
|
settings = QSettings("Any2MIF", "Any2MIF")
|
|
|
|
# 创建并显示主窗口
|
|
window = MainWindow(settings)
|
|
window.show()
|
|
|
|
# 运行应用程序事件循环
|
|
sys.exit(app.exec())
|
|
|
|
if __name__ == "__main__":
|
|
main() |