def isTabControllerUnderMouse(self, tb):
        tbp = []
        while tb!=None:
            tbp.append(tb)
            tb = tb.parent()
        tc = self.tabController
        while tc!=None:
            if tc in tbp:
                return True
            tc = tc.parent()
        return False
Check if any of common parent of the tab controller and tb
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/spreadsheet/spreadsheet_tab.py/StandardTabDockWidget.isTabControllerUnderMouse