'Update the splitter sizes.'

def __update(self):

    if (self.__splitter and self.__widget):
        if (sum(self.__splitter.sizes()) == 0):
            self.__updateOnShow = True
            return
        splitter = self.__splitter
        index = splitter.indexOf(self.__widget)
        sizes = splitter.sizes()
        current = sizes[index]
        diff = (current - self.__size)
        sizes[index] = self.__size
        sizes[(index - 1)] = (sizes[(index - 1)] + diff)
        self.__splitter.setSizes(sizes)
