code: def on_unselect(self, item, action):
          
          if not isinstance(item, int):
              item = self.items.index(item)
  
          self._on_unselect[item] = action
docs: Add an action to make when an object is unfocused.