19 lines
659 B
Python
19 lines
659 B
Python
|
|
# -*- coding: utf-8 -*-
|
|||
|
|
"""
|
|||
|
|
WQ_GUI 端到端模块化新架构
|
|||
|
|
============================
|
|||
|
|
|
|||
|
|
四层一对一分离:
|
|||
|
|
|
|||
|
|
* ``core/`` 基础通讯接口(BaseView 等契约)
|
|||
|
|
* ``views/`` 前端皮囊 —— 仅 PyQt UI,零业务
|
|||
|
|
* ``services/`` 后端大脑 —— 纯函数计算,零 PyQt
|
|||
|
|
* ``main_router.py`` 路由与调度壳,连接前端按钮与后端服务
|
|||
|
|
|
|||
|
|
调用链:
|
|||
|
|
Step1View._on_run_clicked
|
|||
|
|
→ BaseView.dispatch_execute(step_id, config)
|
|||
|
|
→ MainRouter.run_single_step(step_id, config)
|
|||
|
|
→ TaskWorker 线程调用 services.step1_service.execute_step1(config)
|
|||
|
|
→ 返回 dict 结果 → 日志区
|
|||
|
|
"""
|