From 033412c7d10afc8e0ebd4a3ebab288669ab51291 Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Mon, 24 Jun 2024 06:40:10 +0000 Subject: [PATCH] Disable toggle buttons until app is loaded --- qe.ipynb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/qe.ipynb b/qe.ipynb index 660f21586..0066baf7e 100644 --- a/qe.ipynb +++ b/qe.ipynb @@ -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", @@ -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", @@ -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": { @@ -271,7 +283,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.-1" + "version": "3.9.13" }, "vscode": { "interpreter": {