def on_selection_modified(self, view): point = odutils.get_selection_point(view) if point is None: return od_file = files.get(view.id()) if not od_file: return od_file.set_selection(point)
def get_index(self): return odutils.get_selection_point(self.view)