删除所有外部旧引用
This commit is contained in:
@@ -13,7 +13,8 @@ from tkinter import filedialog, messagebox
|
||||
import ttkbootstrap as ttk
|
||||
from PIL import Image
|
||||
|
||||
from drivers.ucd_helpers import get_current_resolution
|
||||
|
||||
|
||||
|
||||
|
||||
_DEFAULT_SAMPLES = [
|
||||
@@ -387,9 +388,9 @@ def _format_float(value):
|
||||
|
||||
|
||||
def _build_color_patch(self, hex_value):
|
||||
if not getattr(self, "ucd", None) or not self.ucd.status:
|
||||
if not self.signal_service.is_connected:
|
||||
raise RuntimeError("请先连接 UCD323 设备")
|
||||
width, height = get_current_resolution(self.ucd)
|
||||
width, height = self.signal_service.current_resolution()
|
||||
rgb = tuple(int(hex_value[i:i + 2], 16) for i in (1, 3, 5))
|
||||
temp_dir = os.path.join(tempfile.gettempdir(), "pq_single_step_patches")
|
||||
os.makedirs(temp_dir, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user