迁移 GUI 调用点
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user