code: def widget_from_tuple(o):
          
          if _matches(o, (Real, Real)):
              min, max, value = _get_min_max_value(o[0], o[1])
              if all(isinstance(_, Integral) for _ in o):
                  cls = IntSlider
              else:
                  cls = FloatSlider
              return cls(value=value, min=min, max=max)
          elif _matches(o, (Real, Real, Real)):
              step = o[2]
              if step <= 0:
                  raise ValueError("step must be >= 0, not %r" % step)
              min, max, value = _get_min_max_value(o[0], o[1], step=step)
              if all(isinstance(_, Integral) for _ in o):
                  cls = IntSlider
              else:
                  cls = FloatSlider
              return cls(value=value, min=min, max=max, step=step)
docs: Make widgets from a tuple abbreviation.