code: def source(self, source):
          
          if isinstance(source, list):
              # if source is a list, get first item or None
              source = source[0] if len(source) > 0 else None
          self._source = source
docs: When the source gets updated, update the select widget