def widget_from_iterable(o):
        """Make widgets from an iterable. This should not be done for
        a string or tuple."""
        # Dropdown expects a dict or list, so we convert an arbitrary
        # iterable to either of those.
        if isinstance(o, (list, dict)):
            return Dropdown(options=o)
        elif isinstance(o, Mapping):
            return Dropdown(options=list(o.items()))
        else:
            return Dropdown(options=list(o))
def widget_from_iterable ( o ) : if isinstance ( o , ( list , dict ) ) : return Dropdown ( options = o ) elif isinstance ( o , Mapping ) : return Dropdown ( options = list ( o . items ( ) ) ) else : return Dropdown ( options = list ( o ) )
Make widgets from an iterable. This should not be done for
        a string or tuple.