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

Function int_selector

bqplot/pyplot.py:1133–1149  ·  view source on GitHub ↗

Creates a `FastIntervalSelector` 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 trai

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

Source from the content-addressed store, hash-verified

1131
1132
1133def int_selector(func=None, trait='selected', **kwargs):
1134 """Creates a `FastIntervalSelector` interaction for the `figure`.
1135
1136 Also attaches the function `func` as an event listener for the
1137 trait `trait`.
1138
1139 Parameters
1140 ----------
1141
1142 func: function
1143 The call back function. It should take at least two arguments. The name
1144 of the trait and the value of the trait are passed as arguments.
1145 trait: string
1146 The name of the IntervalSelector trait whose change triggers the
1147 call back function `func`.
1148 """
1149 return _create_selector(FastIntervalSelector, func, trait, **kwargs)
1150
1151
1152def index_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…