Files
DP/AdminTool/deploy_tool.py
zuowei1216 1b19ff1b92 20251222
2025-12-22 21:06:29 +08:00

35 lines
1005 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.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
快速启动部署工具(跳过组管理功能)
"""
import sys
from PyQt5.QtWidgets import QApplication
from admin_gui import AdminWindow
if __name__ == "__main__":
print("="*60)
print("🚀 启动部署工具...")
print("="*60)
print("\n💡 提示:如果看到后端 API 错误,可以忽略")
print(" 部署功能不依赖后端 API可以正常使用\n")
app = QApplication(sys.argv)
window = AdminWindow()
# 直接切换到部署标签页
# FluentWindow uses switchTo
window.switchTo(window.deploy_interface)
# 启用标签页(即使连接失败)
# FluentWindow handles navigation enabling differently, but generally it's enabled by default
# window.tabs.setEnabled(True) # No longer needed/available
window.show()
print("✅ 工具已启动")
print(" 请切换到「自动化部署」标签页开始使用\n")
sys.exit(app.exec())