allows to remove a tab directly -not only by giving its index

def removeTab(self, tab):
        """allows to remove a tab directly -not only by giving its index"""
        if not isinstance(tab, int):
            tab = self.indexOf(tab)
        return super(FwTabWidget, self).removeTab(tab)