'Remove widget from the list.
Parameters
widget : QWidget
Widget instance to remove.'

def removeWidget(self, widget):

    layout = self.__flowlayout
    frame = self.__widgetFrame(widget)
    if (frame is not None):
        frame.setWidget(None)
        widget.setVisible(False)
        widget.setParent(None)
        layout.takeAt(layout.indexOf(frame))
        frame.hide()
        frame.deleteLater()
