MCPcopy Index your code
hub / github.com/bqplot/bqplot / multi_selector

Function multi_selector

bqplot/pyplot.py:1190–1206  ·  view source on GitHub ↗

Creates a `MultiSelector` interaction for the `figure`. Also attaches the function `func` as an event listener for the trait `trait`. Parameters ---------- func: function The call back function. It should take at least two arguments. The name of the trait and t

(func=None, trait='selected', **kwargs)

Source from the content-addressed store, hash-verified

1188
1189
1190def multi_selector(func=None, trait='selected', **kwargs):
1191 """Creates a `MultiSelector` interaction for the `figure`.
1192
1193 Also attaches the function `func` as an event listener for the
1194 trait `trait`.
1195
1196 Parameters
1197 ----------
1198
1199 func: function
1200 The call back function. It should take at least two arguments. The name
1201 of the trait and the value of the trait are passed as arguments.
1202 trait: string
1203 The name of the MultiSelector trait whose change triggers the
1204 call back function `func`.
1205 """
1206 return _create_selector(MultiSelector, func, trait, **kwargs)
1207
1208
1209def lasso_selector(func=None, trait='selected', **kwargs):

Callers

nothing calls this directly

Calls 1

_create_selectorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…