'Remove `widget` from the stack.
.. note:: The widget is hidden but is not deleted.'

def removeWidget(self, widget):

    index = self.__widgets.index(widget)
    self.layout().removeWidget(widget)
    self.__widgets.pop(index)
