'Close the controlled widget (shrink to size 0).'

def close(self):

    self.__expanded = False
    self.__action.setChecked(False)
    if ((self.__splitter is None) or (self.__widget is None)):
        return
    self.__animation.setStartValue(self.size())
    self.__animation.setEndValue(0)
    self.__animation.start()
