修复LocalDimming测试错误
This commit is contained in:
@@ -42,13 +42,13 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
|
||||
ttk.Label(
|
||||
title_frame,
|
||||
text="🔆 Local Dimming 窗口测试",
|
||||
text="Local Dimming 窗口测试",
|
||||
font=("微软雅黑", 14, "bold"),
|
||||
).pack(side=tk.LEFT)
|
||||
|
||||
# ==================== 2. 窗口百分比按钮 ====================
|
||||
window_frame = ttk.LabelFrame(
|
||||
main_container, text="🔆 窗口百分比(点击发送)", padding=10
|
||||
main_container, text="窗口百分比", padding=10
|
||||
)
|
||||
window_frame.pack(fill=tk.X, pady=(0, 10))
|
||||
|
||||
@@ -133,16 +133,9 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
).pack(side=tk.LEFT, padx=3)
|
||||
|
||||
# ==================== 3. 其他手动图案 ====================
|
||||
pattern_frame = ttk.LabelFrame(main_container, text="🧩 其他测试图案", padding=10)
|
||||
pattern_frame = ttk.LabelFrame(main_container, text="其他测试图案", padding=10)
|
||||
pattern_frame.pack(fill=tk.X, pady=(0, 10))
|
||||
|
||||
ttk.Label(
|
||||
pattern_frame,
|
||||
text="手动发送棋盘格、瞬时峰值、黑场图案,再点击采集当前亮度",
|
||||
font=("", 9),
|
||||
style="SuccessState.TLabel",
|
||||
).pack(pady=(0, 8))
|
||||
|
||||
pattern_row = ttk.Frame(pattern_frame)
|
||||
pattern_row.pack(fill=tk.X)
|
||||
|
||||
@@ -171,21 +164,16 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
).pack(side=tk.LEFT, padx=3)
|
||||
|
||||
# ==================== 4. 独立瞬时峰值连续测试 ====================
|
||||
peak_frame = ttk.LabelFrame(main_container, text="⚡ 瞬时峰值独立测试", padding=10)
|
||||
peak_frame = ttk.LabelFrame(main_container, text="瞬时峰值独立测试", padding=10)
|
||||
peak_frame.pack(fill=tk.X, pady=(0, 10))
|
||||
|
||||
ttk.Label(
|
||||
peak_frame,
|
||||
text="先黑场切窗口后连续测亮度,直到回落或到达最长测量时间",
|
||||
font=("", 9),
|
||||
style="WarningState.TLabel",
|
||||
).grid(row=0, column=0, columnspan=8, sticky=tk.W, pady=(0, 8))
|
||||
|
||||
self.ld_peak_window_size_var = tk.StringVar(value="10")
|
||||
self.ld_peak_window_luminance_var = tk.StringVar(value="100")
|
||||
self.ld_peak_duration_var = tk.StringVar(value="20")
|
||||
self.ld_peak_sample_interval_var = tk.StringVar(value="0.3")
|
||||
self.ld_peak_record_curve_var = tk.BooleanVar(value=True)
|
||||
self.ld_peak_no_limit_var = tk.BooleanVar(value=False)
|
||||
self.ld_peak_drop_percent_var = tk.StringVar(value="3")
|
||||
|
||||
ttk.Label(peak_frame, text="窗口(%):").grid(row=1, column=0, sticky=tk.W, padx=(0, 4))
|
||||
ttk.Entry(peak_frame, textvariable=self.ld_peak_window_size_var, width=8).grid(
|
||||
@@ -242,8 +230,25 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
)
|
||||
self.ld_peak_stop_btn.pack(side=tk.LEFT)
|
||||
|
||||
ttk.Label(peak_frame, text="亮度回落(%):").grid(
|
||||
row=2, column=0, sticky=tk.W, padx=(0, 4), pady=(6, 0)
|
||||
)
|
||||
|
||||
ttk.Entry(
|
||||
peak_frame,
|
||||
textvariable=self.ld_peak_drop_percent_var,
|
||||
width=8
|
||||
).grid(row=2, column=1, sticky=tk.W, pady=(6, 0))
|
||||
|
||||
ttk.Checkbutton(
|
||||
peak_frame,
|
||||
text="不固定测试时间",
|
||||
variable=self.ld_peak_no_limit_var,
|
||||
bootstyle="round-toggle",
|
||||
).grid(row=2, column=2, columnspan=3, sticky=tk.W, pady=(6, 0))
|
||||
|
||||
# ==================== 5. CA410 采集按钮 ====================
|
||||
measure_frame = ttk.LabelFrame(main_container, text="📊 CA410 测量", padding=10)
|
||||
measure_frame = ttk.LabelFrame(main_container, text="CA410 测量", padding=10)
|
||||
measure_frame.pack(fill=tk.X, pady=(0, 10))
|
||||
|
||||
measure_btn_frame = ttk.Frame(measure_frame)
|
||||
@@ -251,7 +256,7 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
|
||||
self.ld_measure_btn = ttk.Button(
|
||||
measure_btn_frame,
|
||||
text="📏 采集当前亮度",
|
||||
text="采集当前亮度",
|
||||
command=self.measure_ld_luminance,
|
||||
bootstyle="primary",
|
||||
width=15,
|
||||
@@ -268,7 +273,7 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
self.ld_result_label.pack(side=tk.LEFT, padx=(10, 0))
|
||||
|
||||
# ==================== 6. 测试结果表格 ====================
|
||||
result_frame = ttk.LabelFrame(main_container, text="📋 测试记录", padding=10)
|
||||
result_frame = ttk.LabelFrame(main_container, text="测试记录", padding=10)
|
||||
result_frame.pack(fill=tk.BOTH, expand=True, pady=(0, 10))
|
||||
|
||||
# Treeview
|
||||
@@ -314,7 +319,7 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
|
||||
self.ld_save_btn = ttk.Button(
|
||||
bottom_frame,
|
||||
text="💾 保存结果",
|
||||
text="保存结果",
|
||||
command=self.save_local_dimming_results,
|
||||
bootstyle="info",
|
||||
width=12,
|
||||
@@ -323,7 +328,7 @@ def create_local_dimming_panel(self: "PQAutomationApp"):
|
||||
|
||||
self.ld_plot_btn = ttk.Button(
|
||||
bottom_frame,
|
||||
text="📈 生成峰值曲线",
|
||||
text="生成峰值曲线",
|
||||
command=self.plot_ld_instant_peak_curve,
|
||||
bootstyle="warning-outline",
|
||||
width=14,
|
||||
|
||||
Reference in New Issue
Block a user