491 if error != QMediaPlayer.Error.NoError: |
491 if error != QMediaPlayer.Error.NoError: |
492 EricMessageBox.warning( |
492 EricMessageBox.warning( |
493 self, |
493 self, |
494 self.tr("Error playing pronunciation"), |
494 self.tr("Error playing pronunciation"), |
495 self.tr("<p>The received pronunciation could not be played." |
495 self.tr("<p>The received pronunciation could not be played." |
496 "</p><p>Reason: {0}</p>") |
496 "</p><p>Reason: {0}</p>").format(errorString) |
497 ) |
497 ) |
498 |
498 |
499 @pyqtSlot() |
499 @pyqtSlot() |
500 def on_preferencesButton_clicked(self): |
500 def on_preferencesButton_clicked(self): |
501 """ |
501 """ |