def removeComponent(self, arg):
        """Removes the component from this container or the given location.

        @param arg: the component to be removed or the location identifier
                    of the component.
        """
        if isinstance(arg, IComponent):
            c = arg
            if c is None:
                return
            for k, v in self._slots.iteritems():
                if v == c:
                    del self._slots[k]
                    break
            super(CustomLayout, self).removeComponent(c)
            self.requestRepaint()
        else:
            location = arg
            self.removeComponent(self._slots.get(location))
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/custom_layout.py/CustomLayout.removeComponent/original