VisibilitySelector#

VisibilitySelector#

Constructor#

VisibilitySelector(collection[, selection, ...])

Shows a subset of graphics in a GraphicCollection by toggling their visibility.

Properties#

VisibilitySelector.lut

Optional per-item colors, shape (n, 4) float32 RGBA

VisibilitySelector.lut_wrap

'fixed' or 'repeat'.

VisibilitySelector.selection

Get or set the selection

Methods#

VisibilitySelector.add_event_handler(handler)

Register a callback fired when the selection changes.

VisibilitySelector.append(item)

Add an index to the selection.

VisibilitySelector.clear()

Hide all graphics.

VisibilitySelector.pop(index)

pop item at the given index

VisibilitySelector.remove(item)

Remove an index from the selection.

VisibilitySelector.remove_event_handler(handler)