'Set the size of the controlled widget (either width or height
depending on the orientation).
.. note::
The controlled widget\'s size is only updated when it it is shown.'

def setSize(self, size):

    if (self.__size != size):
        self.__size = size
        self.__update()
