import sys
import os

# 确保可以导入 src 模块
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from src.gui import QApplication, MainWindow

def main():
    app = QApplication(sys.argv)
    win = MainWindow()
    win.show()
    print("[MAIN] 窗口已显示，等待操作...")
    sys.exit(app.exec())

if __name__ == "__main__":
    main()
