def getTab(self, arg):
        """Returns the L{ITab} (metadata) for a component. The
        L{ITab} object can be used for setting caption,icon, etc
        for the tab.

        @param arg:
                   the component or the position of the tab
        """
        if isinstance(arg, IComponent):
            c = arg
            return self._tabs.get(c)
        else:
            position = arg
            c = self._components[position]
            if c is not None:
                return self._tabs.get(c)
            return None
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tab_sheet.py/TabSheet.getTab/original