def addComponent(self, c, index=None):
        if index is None:
            self.components.append(c)
        else:
            self.components.insert(index, c)

        try:
            super(AbstractOrderedLayout, self).addComponent(c)
            self.requestRepaint()
        except ValueError, e:
            if c in self.components:
                self.components.remove(c)
            raise e
Add a component into this container. The component is added
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/abstract_ordered_layout.py/AbstractOrderedLayout.addComponent