def getComponentIndex(self, component):
        try:
            return self.components.index(component)
        except ValueError:
            return -1
Returns the index of the given component.
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/abstract_ordered_layout.py/AbstractOrderedLayout.getComponentIndex