'Return the size of the widget in the splitter (either height of
width) depending on the splitter orientation.'

def size(self):

    if (self.__splitter and self.__widget):
        index = self.__splitter.indexOf(self.__widget)
        sizes = self.__splitter.sizes()
        return sizes[index]
    else:
        return (-1)
