code: def set_attr(self, attr, value, selection=None):
          
  
          if selection is None:
              selection = self.grid.selection
  
          if not selection:
              # Add current cell to selection so that it gets changed
              selection.cells.append(self.grid.actions.cursor[:2])
  
          attrs = {attr: value}
  
          table = self.grid.current_table
  
          # Change model
          self._set_cell_attr(selection, table, attrs)
docs: Sets attr of current selection to value