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

Function brush_selector

bqplot/pyplot.py:1171–1187  ·  view source on GitHub ↗

Creates a `BrushSelector` 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

1169
1170
1171def brush_selector(func=None, trait='selected', **kwargs):
1172 """Creates a `BrushSelector` interaction for the `figure`.
1173
1174 Also attaches the function `func` as an event listener for the
1175 trait `trait`.
1176
1177 Parameters
1178 ----------
1179
1180 func: function
1181 The call back function. It should take at least two arguments. The name
1182 of the trait and the value of the trait are passed as arguments.
1183 trait: string
1184 The name of the BrushSelector trait whose change triggers the
1185 call back function `func`.
1186 """
1187 return _create_selector(BrushSelector, func, trait, **kwargs)
1188
1189
1190def multi_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…