def add(self, x): if isinstance(x, Region): sublime_api.view_selection_add_region(self.view_id, x.a, x.b, x.xpos) else: sublime_api.view_selection_add_point(self.view_id, x)