def box_select_extend_colliding(self):
        """Add objs colliding w/ box to selection."""
        ### get objects colliding with box selection
        colliding_objs = self.get_box_colliding()

        ### if there are no colliding objects, there's
        ### no point in keep going, so return early
        if not colliding_objs:
            return

        ### otherwise update the selection and the active
        ### obj

        ## get the union of all objects
        union = set(self.selected_objs).union(colliding_objs)

        ## select objects in the union

        self.selected_objs.clear()
        self.selected_objs.extend(union)

        ### assign a random object among the colliding ones
        ### as the active object

        self.active_obj = sample(list(colliding_objs), 1).pop()
Add objs colliding w/ box to selection.
nodezator/editing/selection.py