'Set the current tab index.'

def setCurrentIndex(self, index):

    if (self.__currentIndex != index):
        self.__currentIndex = index
        self.__sloppyRegion = QRegion()
        self.__sloppyButton = None
        if (index != (-1)):
            self.__tabs[index].button.setChecked(True)
        self.currentChanged.emit(index)
