allow index or tab widget instance

def tabText(self, tab):
        """ allow index or tab widget instance"""
        if not isinstance(tab, int):
            tab = self.indexOf(tab)
        return super(FwTabWidget, self).tabText(tab)