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

Function index_selector

bqplot/pyplot.py:1152–1168  ·  view source on GitHub ↗

Creates an `IndexSelector` 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

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

Source from the content-addressed store, hash-verified

1150
1151
1152def index_selector(func=None, trait='selected', **kwargs):
1153 """Creates an `IndexSelector` interaction for the `figure`.
1154
1155 Also attaches the function `func` as an event listener for the
1156 trait `trait`.
1157
1158 Parameters
1159 ----------
1160
1161 func: function
1162 The call back function. It should take at least two arguments. The name
1163 of the trait and the value of the trait are passed as arguments.
1164 trait: string
1165 The name of the IndexSelector trait whose change triggers the
1166 call back function `func`.
1167 """
1168 return _create_selector(IndexSelector, func, trait, **kwargs)
1169
1170
1171def brush_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…