Skip to content

Commit

Permalink
tabs are not dynamic anymore, see #7
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-schmitt committed Oct 29, 2021
1 parent 46474f9 commit bbb1c73
Showing 1 changed file with 6 additions and 43 deletions.
49 changes: 6 additions & 43 deletions app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -535,46 +535,6 @@
" sizing_mode='stretch_height')"
]
},
{
"cell_type": "markdown",
"id": "f7bcd845",
"metadata": {},
"source": [
"## Toogle busy indicators"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2749eee6",
"metadata": {},
"outputs": [],
"source": [
"def toogle_busy_indicators():\n",
" busy_indicator_climate_tab.value = not busy_indicator_climate_tab.value\n",
" busy_indicator_mb_settings_tab.value = not busy_indicator_mb_settings_tab.value"
]
},
{
"cell_type": "markdown",
"id": "bfcf7a31",
"metadata": {},
"source": [
"## Toogle menu when working"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "daf4c8a4",
"metadata": {},
"outputs": [],
"source": [
"def toogle_buttons_disabled():\n",
" set_mb_settings_button.disabled = not set_mb_settings_button.disabled\n",
" set_climate_button.disabled = not set_climate_button.disabled"
]
},
{
"cell_type": "markdown",
"id": "25a24e65",
Expand Down Expand Up @@ -645,7 +605,10 @@
" temp_liquid_slider.disabled = not temp_liquid_slider.disabled\n",
" temp_bias_slider.disabled = not temp_bias_slider.disabled\n",
" prcp_fac_slider.disabled = not prcp_fac_slider.disabled\n",
" temp_grad_slider.disabled = not temp_grad_slider.disabled"
" temp_grad_slider.disabled = not temp_grad_slider.disabled\n",
" \n",
" # figures\n",
" figures_tab.loading = not figures_tab.loading"
]
},
{
Expand Down Expand Up @@ -2723,7 +2686,7 @@
" sizing_mode='stretch_both')),\n",
" sizing_mode='stretch_both',\n",
" tabs_location='above',\n",
" dynamic=True\n",
" dynamic=False\n",
" ),\n",
" pn.layout.Divider(margin=(0, 0, 0, 0)),\n",
" pn.Row(mb_figures[i],\n",
Expand Down Expand Up @@ -2857,7 +2820,7 @@
"\n",
"\n",
"figures_tab = pn.Tabs(('', []),\n",
" dynamic=True)\n",
" dynamic=False)\n",
"figures_tab.param.watch(change_figures_tab, ['active'])\n",
"\n",
"\n",
Expand Down

0 comments on commit bbb1c73

Please sign in to comment.