reversed tab namming
This commit is contained in:
parent
830c0d0edb
commit
a15f32d2a7
2 changed files with 6 additions and 6 deletions
|
|
@ -940,7 +940,8 @@ class ExpertApplication(Controller):
|
|||
self.comparison_view.widget,
|
||||
# self._debug_output,
|
||||
))
|
||||
self._results_tab.titles = ['Current scenario', 'Scenario comparison', "Debug"]
|
||||
for i, title in enumerate(['Current scenario', 'Scenario comparison', "Debug"]):
|
||||
self._results_tab.set_title(i, title)
|
||||
self.widget = widgets.HBox(
|
||||
children=(
|
||||
self.multi_model_view.widget,
|
||||
|
|
@ -1036,7 +1037,7 @@ class MultiModelView(View):
|
|||
self.add_tab(scenario_name, model)
|
||||
model_scenario_ids.append(id(model))
|
||||
tab_index = self._tab_model_ids.index(id(model))
|
||||
self.widget.titles = [scenario_name for (scenario_name, _) in model_scenarios]
|
||||
self.widget.set_title(tab_index, scenario_name)
|
||||
|
||||
# Any remaining model_scenario_ids are no longer needed, so remove
|
||||
# their tabs.
|
||||
|
|
|
|||
|
|
@ -201,9 +201,8 @@ class CO2Application(Controller):
|
|||
self.comparison_view.widget,
|
||||
# self._debug_output,
|
||||
))
|
||||
# for i, title in enumerate(['Current scenario', 'Scenario comparison', "Debug"]):
|
||||
# self._results_tab.set_title(i, title)
|
||||
self._results_tab.titles = ['Current scenario', 'Scenario comparison', "Debug"]
|
||||
for i, title in enumerate(['Current scenario', 'Scenario comparison', "Debug"]):
|
||||
self._results_tab.set_title(i, title)
|
||||
self.widget = widgets.HBox(
|
||||
children=(
|
||||
self.multi_model_view.widget,
|
||||
|
|
@ -663,7 +662,7 @@ class MultiModelView(View):
|
|||
self.add_tab(scenario_name, model)
|
||||
model_scenario_ids.append(id(model))
|
||||
tab_index = self._tab_model_ids.index(id(model))
|
||||
self.widget.titles = [scenario_name for (scenario_name, _) in model_scenarios]
|
||||
self.widget.set_title(tab_index, scenario_name)
|
||||
|
||||
# Any remaining model_scenario_ids are no longer needed, so remove
|
||||
# their tabs.
|
||||
|
|
|
|||
Loading…
Reference in a new issue