code: def reject(self):
          
          self._result = 0
          if not self.signalsBlocked():
              self.rejected.emit()
          
          if self.autoCloseOnReject():
              self.close()
docs: Emits the accepted signal and closes the popup.