Add initial selection on gauss component

This commit is contained in:
2021-02-15 15:26:06 +01:00
parent 1a7cd2a4b5
commit 747b008d5e
2 changed files with 2 additions and 0 deletions

View File

@@ -470,6 +470,7 @@ def create():
# start with `background` and `gauss` fit functions added
fitparams_add_dropdown_callback(types.SimpleNamespace(item="background"))
fitparams_add_dropdown_callback(types.SimpleNamespace(item="gauss"))
fitparams_select.value = ["1"] # add selection to gauss
fit_output_textinput = TextAreaInput(title="Fit results:", width=450, height=200)

View File

@@ -551,6 +551,7 @@ def create():
# start with `background` and `gauss` fit functions added
fitparams_add_dropdown_callback(types.SimpleNamespace(item="background"))
fitparams_add_dropdown_callback(types.SimpleNamespace(item="gauss"))
fitparams_select.value = ["1"] # add selection to gauss
fit_output_textinput = TextAreaInput(title="Fit results:", width=450, height=200)