ImageControls

class ibb.widgets.ImageControls(**kwargs: Any)[source]

This widget shows 6 different buttons to control an index with regards to a total length.
Its intended use case is to control the image that is displayed in other IBB widgets.

Parameters
  • total (int) – Maximum number the controls index can reach

  • name (str) – What the controls are used for (eg. ‘image’)

Examples

Warning

Note that the widgets are not responding as we do not have a python backend running!

[1]:
import ipywidgets
import ibb
[2]:
ctrl = ibb.widgets.ImageControls(100, name='value')
out = ipywidgets.Output()

def observe_index(change):
    out.clear_output()
    with out:
        print(change['new'])

ctrl.observe(observe_index, names=['index'])
[3]:
ipywidgets.VBox([ctrl, out])
[3]: