'Delete the OWBaseWidget instance.'

def _delete_widget(self, widget):

    widget.close()
    widget.saveSettings()
    widget.onDeleteWidget()
    if (self.__widget_processing_state[widget] != 0):
        self.__delay_delete.add(widget)
    else:
        widget.deleteLater()
        del self.__widget_processing_state[widget]
