Skip to content

Commit

Permalink
remove mnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Aug 8, 2023
1 parent 6fd6758 commit 80633fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/icons.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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]"
]
},
Expand Down
1 change: 0 additions & 1 deletion ipylab/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion src/widgets/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80633fd

Please sign in to comment.