'Return the current shown widget depending on the `expanded` state.'

def currentWidget(self):

    if self.__expanded:
        return self.__expandedWidget
    else:
        return self.__collapsedWidget
