def closeEvent(self, event):
        choice = show_question('Delete %s?'%self.var_name,
           'Are you sure you want to permanently delete the VisTrail variable\
 "%s"?\n\nNote:  Any workflows using this variable will be left in an invalid state.'%self.var_name,
                               [NO_BUTTON,YES_BUTTON],
                               NO_BUTTON)
        if choice == NO_BUTTON:
            event.ignore()
            return
        self.emit(QtCore.SIGNAL('deleted(QWidget*)'), self)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/variable_dropbox.py/QVariableInputWidget.closeEvent/original