def add(self, chb):
        """ Adds a Checkbox to this collection """
        if chb.collection is not None:
            self.error(
                "Can't add checkbox as it already belongs "
                "to another collection!")
            return
        chb.collection = self
        self._items.append(chb)
dataset/ETHPy150Open tobspr/RenderPipeline/rpcore/gui/checkbox_collection.py/CheckboxCollection.add/original