Skip to content
Snippets Groups Projects
Commit e34b4adf authored by Loïc Le Guyader's avatar Loïc Le Guyader
Browse files

Merge branch 'fix' into 'master'

fix issues with widgets

See merge request SCS/tzpgcalc!7
parents 4b6b8408 b32ee58c
No related branches found
No related tags found
1 merge request!7fix issues with widgets
...@@ -412,7 +412,7 @@ class TZPGcalc(): ...@@ -412,7 +412,7 @@ class TZPGcalc():
# TZPG part # TZPG part
self.type = widgets.Dropdown( self.type = widgets.Dropdown(
options=TZPG_db.keys(), options=list(TZPG_db),
value='Custom', value='Custom',
description='Type:', description='Type:',
disabled=False disabled=False
...@@ -581,14 +581,14 @@ class TZPGcalc(): ...@@ -581,14 +581,14 @@ class TZPGcalc():
tab1 = widgets.Accordion(children=[TZPGTab]) tab1 = widgets.Accordion(children=[TZPGTab])
tab1.set_title(0, 'TZPG') tab1.set_title(0, 'TZPG')
tab1.selected_index = None tab1.selected_index = 0
tab2 = widgets.Accordion(children=[samTab]) tab2 = widgets.Accordion(children=[samTab])
tab2.set_title(0, 'sample') tab2.set_title(0, 'sample')
tab2.selected_index = None tab2.selected_index = 0
tab3 = widgets.Accordion(children=[detTab]) tab3 = widgets.Accordion(children=[detTab])
tab3.set_title(0, 'detector') tab3.set_title(0, 'detector')
tab3.selected_index = None tab3.selected_index = 0
self.control = VBox(children=[tab1, tab2, tab3, self.button]) self.control = VBox(children=[tab1, tab2, tab3, self.button])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment