迁移 GUI 调用点

This commit is contained in:
xinzhu.yin
2026-05-24 11:02:37 +08:00
parent a855ba7157
commit 1b66fff35b
8 changed files with 93 additions and 32 deletions

View File

@@ -13,7 +13,7 @@ import ttkbootstrap as ttk
from PIL import Image, ImageTk
from app.services import ai_image as _svc
from drivers.ucd_helpers import get_current_resolution, send_image_pattern
from drivers.ucd_helpers import get_current_resolution
# ---------------- 面板创建 ----------------
@@ -689,7 +689,8 @@ def _send_to_ucd(self):
def _worker():
err = None
try:
ok = send_image_pattern(ucd, send_path)
self.signal_service.send_image(send_path)
ok = True
except Exception as exc:
ok = False
err = str(exc)