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

Method connect_event

lib/matplotlib/widgets.py:126–134  ·  view source on GitHub ↗

Connect a callback function with an event. This should be used in lieu of ``figure.canvas.mpl_connect`` since this function stores callback ids for later clean up.

(self, event, callback)

Source from the content-addressed store, hash-verified

124 )
125
126 def connect_event(self, event, callback):
127 """
128 Connect a callback function with an event.
129
130 This should be used in lieu of ``figure.canvas.mpl_connect`` since this
131 function stores callback ids for later clean up.
132 """
133 cid = self.canvas.mpl_connect(event, callback)
134 self._cids.append(cid)
135
136 def disconnect_events(self):
137 """Disconnect all events created by this widget."""

Callers 9

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
_add_boxMethod · 0.80
__init__Method · 0.80

Calls 1

mpl_connectMethod · 0.80

Tested by

no test coverage detected