'Returns the numeric index of the tab specified by tab_id, or
the total number of tabs if tab_id is the string "end".'

def index(self, tab_id):

    return self.tk.getint(self.tk.call(self._w, 'index', tab_id))
