Skip to content

Commit

Permalink
Disable toggle buttons until app is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jun 24, 2024
1 parent 2936ff6 commit 033412c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion qe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
" value=False,\n",
" description=\"About\",\n",
" tooltip=\"Learn about the app\",\n",
" disabled=True,\n",
")\n",
"\n",
"guide_toggle = ipw.ToggleButton(\n",
Expand All @@ -95,6 +96,7 @@
" value=False,\n",
" description=\"Guide\",\n",
" tooltip=\"Learn how to use the app\",\n",
" disabled=True,\n",
")\n",
"\n",
"info_toggles = ipw.HBox(children=[about_toggle, guide_toggle])\n",
Expand Down Expand Up @@ -253,6 +255,16 @@
"\n",
"main.children = [app_with_work_chain_selector]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"about_toggle.disabled = False\n",
"guide_toggle.disabled = False"
]
}
],
"metadata": {
Expand All @@ -271,7 +283,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.-1"
"version": "3.9.13"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 033412c

Please sign in to comment.