Files
desktop-transfer/main.py
xiaji 136994db90 feat: 实现基于PySide6的翻译GUI工具初始版本
添加主程序入口、GUI界面、翻译核心逻辑、Word文件处理、系统监控和日志模块
2026-01-14 15:10:19 +08:00

27 lines
606 B
Python
Raw 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 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()