'Close this program while the reject signal is emitted.
.. note:: This method is the slot responses to the reject signal from
an instance of the main dialog.'

def reject(self):

    self.close()
    return QtGui.QDialog.reject(self)
