Skip to content

Commit

Permalink
Delete the docs for the on_submit method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Jul 27, 2017
1 parent 7d53455 commit 53515bb
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions docs/source/examples/Widget Events.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,49 +116,6 @@
"button.on_click(on_button_clicked)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### on_submit"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The `Text` widget also has a special `on_submit` event. The `on_submit` event fires when the user hits return."
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "cab0a6538a00491f95c48e77707e9ad8"
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"text = widgets.Text()\n",
"display(text)\n",
"\n",
"def handle_submit(sender):\n",
" print(text.value)\n",
"\n",
"text.on_submit(handle_submit)"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down

0 comments on commit 53515bb

Please sign in to comment.