diff --git a/examples/icons.ipynb b/examples/icons.ipynb index fb21fde..ec6291c 100644 --- a/examples/icons.ipynb +++ b/examples/icons.ipynb @@ -173,7 +173,7 @@ }, "outputs": [], "source": [ - "from ipywidgets import Text, Checkbox\n", + "from ipywidgets import Text, Checkbox, IntText\n", "import json\n", "\n", "def noop(value):\n", @@ -187,7 +187,7 @@ "\n", "\n", "title_controls = []\n", - "for field_name in [\"label\", \"caption\", \"mnemonic\", \"icon_class\", \"class_name\", \"dataset\"]:\n", + "for field_name in [\"label\", \"caption\", \"icon_class\", \"class_name\", \"dataset\"]:\n", " link_fn = noop\n", " placeholder = \"\"\n", " if field_name == \"dataset\":\n", @@ -198,7 +198,7 @@ " title_controls.append(field)\n", "closable = Checkbox(description=\"closable?\")\n", "dlink((closable, \"value\"), (panel.title, \"closable\"))\n", - "title_controls.append(closable)\n", + "title_controls += [closable]\n", "panel.children = [icon_controls, *title_controls]" ] }, diff --git a/ipylab/widgets.py b/ipylab/widgets.py index 1207bc5..f499647 100644 --- a/ipylab/widgets.py +++ b/ipylab/widgets.py @@ -20,7 +20,6 @@ class Title(Widget): closable = Bool(True).tag(sync=True) dataset = Dict().tag(sync=True) icon_label = Unicode().tag(sync=True) - mnemonic = Unicode().tag(sync=True) icon = Instance(Icon, allow_none=True).tag(sync=True, **widget_serialization) diff --git a/src/widgets/shell.ts b/src/widgets/shell.ts index baf9efe..3051e20 100644 --- a/src/widgets/shell.ts +++ b/src/widgets/shell.ts @@ -88,7 +88,6 @@ export class ShellModel extends WidgetModel { luminoWidget.title.closable = title.get('closable'); luminoWidget.title.label = title.get('label'); luminoWidget.title.dataset = title.get('dataset'); - luminoWidget.title.mnemonic = title.get('mnemonic'); luminoWidget.title.iconLabel = title.get('icon_label'); const icon = await unpack_models(title.get('icon'), this.widget_manager);