def trim_to_sel(self, *args):
        if len(self.selection) > 0:
            sel_indices = [sel.index for sel in self.selection]
            first_sel_index = min(sel_indices)
            last_sel_index = max(sel_indices)
            self.data = self.data[first_sel_index:last_sel_index + 1]
Cut list items with indices in sorted_keys that are less than or
dataset/ETHPy150Open kivy/kivy/kivy/adapters/listadapter.py/ListAdapter.trim_to_sel