'Set the current page index.'

def setCurrentIndex(self, index):

    if (self.__currentIndex != index):
        self.__currentIndex = index
        self.__tab.setCurrentIndex(index)
        self.__stack.setCurrentIndex(index)
        self.currentChanged.emit(index)
