def reject(self): ''' Stops any sound that is playing and exits. ''' if self.__sound is not None and not self.__sound.isFinished(): self.__sound.stop() self.__sound = None QDialog.reject(self)
def reject(self): """ """ if self.busy: answer = QMessageBox.question( self, 'Quit Conda Manager?', 'Conda is still busy.\n\nDo you want to quit?', buttons=QMessageBox.Yes | QMessageBox.No) if answer == QMessageBox.Yes: QDialog.reject(self) # Do some cleanup? else: QDialog.reject(self)
def cancel_process(self): """ Allow user to cancel an ongoing process. """ logger.debug(str('process canceled by user.')) if self.busy: dlg = self.cancel_dialog() reply = dlg.exec_() if reply: self.update_status(hide=False, message='Process cancelled') self.api.conda_terminate() self.api.download_requests_terminate() self.api.conda_clear_lock() self.table.clear_actions() self.sig_process_cancelled.emit() else: QDialog.reject(self)
def reject(self): """Reimplement Qt method""" if self.arraywidget is not None: for index in range(self.stack.count()): self.stack.widget(index).reject_changes() QDialog.reject(self)
def reject(self): self.data = None QDialog.reject(self)
def reject(self): ''' Resets the thread pool size back to the default. ''' self.change_pool_size(QThread.idealThreadCount()) QDialog.reject(self)