def getTabPosition(self, tab):
        try:
            return self._components.index( tab.getComponent() )
        except ValueError:
            return -1
Gets the position of the tab
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tab_sheet.py/TabSheet.getTabPosition