Uses the :meth:`paint<sparkle.gui.stim.components.qcomponents.QStimulusComponent.paint>` 
        method of the component it represents to fill in an appropriately 
        sized rectange. :qtdoc:`Re-implemented<QStyledItemDelegate.paint>`

def paint(self, painter, option, index):
        """Uses the :meth:`paint<sparkle.gui.stim.components.qcomponents.QStimulusComponent.paint>` 
        method of the component it represents to fill in an appropriately 
        sized rectange. :qtdoc:`Re-implemented<QStyledItemDelegate.paint>`"""
        component = index.model().data(index, role=QtCore.Qt.UserRole)
        painter.drawRect(option.rect)

        component.paint(painter, option.rect, option.palette)