修复LocalDimming测试错误
This commit is contained in:
@@ -774,7 +774,6 @@ def create_test_type_frame(self: "PQAutomationApp"):
|
||||
).pack(fill=tk.X, padx=16, pady=(16, 6), anchor="w")
|
||||
|
||||
panel_buttons = [
|
||||
("log_btn", "测试日志", self.toggle_log_panel),
|
||||
("ai_image_btn", "AI 图片", self.toggle_ai_image_panel),
|
||||
("pantone_baseline_btn", "Pantone 摸底", self.toggle_pantone_baseline_panel),
|
||||
("gamma_pattern_btn", "Gamma Pattern编辑", self.toggle_gamma_pattern_panel),
|
||||
@@ -801,6 +800,17 @@ def create_test_type_frame(self: "PQAutomationApp"):
|
||||
)
|
||||
beta_lbl.pack(fill=tk.X, side=tk.BOTTOM, padx=4, pady=(6, 4))
|
||||
|
||||
|
||||
# ---------- 测试日志(底部固定) ----------
|
||||
self.log_btn = ttk.Button(
|
||||
self.sidebar_frame,
|
||||
text="测试日志",
|
||||
style="Sidebar.TButton",
|
||||
command=self.toggle_log_panel,
|
||||
takefocus=False,
|
||||
)
|
||||
self.log_btn.pack(fill=tk.X, padx=0, pady=(0, 2), side=tk.BOTTOM)
|
||||
|
||||
# ---------- 主题切换(底部固定) ----------
|
||||
self.theme_toggle_btn = ttk.Button(
|
||||
self.sidebar_frame,
|
||||
@@ -814,8 +824,6 @@ def create_test_type_frame(self: "PQAutomationApp"):
|
||||
|
||||
# 注册面板按钮
|
||||
if hasattr(self, "panels"):
|
||||
if "log" in self.panels:
|
||||
self.panels["log"]["button"] = self.log_btn
|
||||
if "ai_image" in self.panels:
|
||||
self.panels["ai_image"]["button"] = self.ai_image_btn
|
||||
if "single_step" in self.panels:
|
||||
@@ -1020,10 +1028,10 @@ def on_screen_module_timing_changed(self: "PQAutomationApp", event=None):
|
||||
|
||||
# 根据分辨率给出提示
|
||||
if width >= 3840: # 4K及以上
|
||||
self.log_gui.log(" ℹ️ 检测到4K分辨率", level="info")
|
||||
self.log_gui.log("检测到4K分辨率", level="info")
|
||||
|
||||
if refresh_rate >= 120:
|
||||
self.log_gui.log(" ℹ️ 检测到高刷新率", level="info")
|
||||
self.log_gui.log("检测到高刷新率", level="info")
|
||||
|
||||
# 更新屏模组配置(独立于 current_test_type)
|
||||
self.config.current_test_types.setdefault("screen_module", {})[
|
||||
|
||||
Reference in New Issue
Block a user