code: def add_class(self, className):
          
          if className not in self._dom_classes:
              self._dom_classes = list(self._dom_classes) + [className]
          return self
docs: Adds a class to the top level element of the widget.
  
          Doesn't add the class if it already exists.