code: def set_style(self, style):
          
          if style is not None:
              try:
                  self.style.update(style)
              except ValueError:
                  for s in style.split(';'):
                      k, v = s.split(':', 1)
                      self.style[k.strip()] = v.strip()
docs: Allows to set style properties for the widget.
              Args:
                  style (str or dict): The style property dictionary or json string.