Files
desktop-transfer/main.py
xiaji 8a5450eeae 添加PyInstaller打包配置及清理脚本
添加translate.ico图标文件
更新.gitignore忽略.spec文件
修改main.py导入路径为main_window_final
优化translator.py的错误处理
添加pyinstaller-one技能目录及文档
更新main.spec配置排除不必要的依赖
添加verify_features.py功能验证脚本
2026-01-16 16:37:07 +08:00

27 lines
612 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import sys
from PySide6.QtWidgets import QApplication
from ui.main_window_final import MainWindow
from utils.logger import logger
def main():
"""主程序入口"""
logger.info("启动PrivaTrans翻译工具")
# 创建应用程序
app = QApplication(sys.argv)
# 设置应用程序样式
app.setStyle("Fusion")
# 创建主窗口
window = MainWindow()
window.show()
# 运行应用程序
exit_code = app.exec()
logger.info(f"PrivaTrans翻译工具退出退出码: {exit_code}")
sys.exit(exit_code)
if __name__ == "__main__":
main()