def beep(self): """ Makes a beep to alert the user to a situation requiring their attention. """ raise QApplication.beep()
def _emitReplacement(self): # don't emit a replacement with empty fields if not self.lineedit_find.text() or not self.lineedit_replace.text(): QApplication.beep() else: self.replace_committed.emit(self.lineedit_find.text(), self.lineedit_replace.text())