迁移 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 @@ from tkinter import filedialog, messagebox
import ttkbootstrap as ttk
from PIL import Image
from drivers.ucd_helpers import get_current_resolution, send_image_pattern
from drivers.ucd_helpers import get_current_resolution
_DEFAULT_SAMPLES = [
@@ -409,9 +409,7 @@ def _send_current_patch(self):
def worker():
try:
image_path = _build_color_patch(self, sample["hex"])
ok = send_image_pattern(self.ucd, image_path)
if not ok:
raise RuntimeError("UCD323 发送失败")
self.signal_service.send_image(image_path)
self.single_step_current_image_path = image_path
self._dispatch_ui(
self.single_step_status_var.set,