MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / on_submit

Method on_submit

lib/matplotlib/widgets.py:1743–1750  ·  view source on GitHub ↗

When the user hits enter or leaves the submission box, call this *func* with event. A connection id is returned which can be used to disconnect.

(self, func)

Source from the content-addressed store, hash-verified

1741 return self._observers.connect('change', lambda text: func(text))
1742
1743 def on_submit(self, func):
1744 """
1745 When the user hits enter or leaves the submission box, call this
1746 *func* with event.
1747
1748 A connection id is returned which can be used to disconnect.
1749 """
1750 return self._observers.connect('submit', lambda text: func(text))
1751
1752 def disconnect(self, cid):
1753 """Remove the observer with connection id *cid*."""

Callers 2

test_TextBoxFunction · 0.95
textbox.pyFile · 0.80

Calls 2

funcFunction · 0.50
connectMethod · 0.45

Tested by 1

test_TextBoxFunction · 0.76