修改色域画图及重绘方式
This commit is contained in:
@@ -57,6 +57,8 @@ from app.views.chart_frame import (
|
||||
init_gamma_chart as _cf_init_gamma_chart,
|
||||
init_gamut_chart as _cf_init_gamut_chart,
|
||||
on_chart_tab_changed as _cf_on_chart_tab_changed,
|
||||
sync_gamut_toolbar as _cf_sync_gamut_toolbar,
|
||||
_on_gamut_toolbar_changed as _cf_on_gamut_toolbar_changed,
|
||||
update_chart_tabs_state as _cf_update_chart_tabs_state,
|
||||
)
|
||||
from app.config_io import (
|
||||
@@ -274,6 +276,8 @@ class PQAutomationApp:
|
||||
clear_chart = _cf_clear_chart
|
||||
create_result_chart_frame = _cf_create_result_chart_frame
|
||||
on_chart_tab_changed = _cf_on_chart_tab_changed
|
||||
sync_gamut_toolbar = _cf_sync_gamut_toolbar
|
||||
_on_gamut_toolbar_changed = _cf_on_gamut_toolbar_changed
|
||||
|
||||
create_floating_config_panel = _main.create_floating_config_panel
|
||||
create_test_items_content = _main.create_test_items_content
|
||||
@@ -320,6 +324,8 @@ class PQAutomationApp:
|
||||
append_custom_template_result = _ctp.append_custom_template_result
|
||||
start_custom_template_test = _ctp.start_custom_template_test
|
||||
update_custom_button_visibility = _ctp.update_custom_button_visibility
|
||||
export_custom_template_excel = _ctp.export_custom_template_excel
|
||||
export_custom_template_charts = _ctp.export_custom_template_charts
|
||||
|
||||
create_log_panel = _sp.create_log_panel
|
||||
create_local_dimming_panel = _sp.create_local_dimming_panel
|
||||
@@ -393,8 +399,6 @@ class PQAutomationApp:
|
||||
def _hide_recalc_buttons(self, include_gamut=False):
|
||||
"""隐藏重新计算按钮。include_gamut=True 时同时隐藏色域重算按钮。"""
|
||||
attrs = ["recalc_cct_btn", "sdr_recalc_cct_btn", "hdr_recalc_cct_btn"]
|
||||
if include_gamut:
|
||||
attrs += ["recalc_gamut_btn", "sdr_recalc_gamut_btn", "hdr_recalc_gamut_btn"]
|
||||
hidden = 0
|
||||
for attr in attrs:
|
||||
btn = getattr(self, attr, None)
|
||||
@@ -536,6 +540,7 @@ class PQAutomationApp:
|
||||
self.on_test_type_change()
|
||||
self._switch_signal_format_tabs(test_type)
|
||||
self._switch_chart_tabs_by_test_type(test_type)
|
||||
self.sync_gamut_toolbar()
|
||||
|
||||
def _check_start_preconditions(self):
|
||||
"""检查开始测试前置条件:设备连接 & 未在测试中。"""
|
||||
|
||||
Reference in New Issue
Block a user