eric7/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py

branch
eric7
changeset 8514
736178b32e5a
parent 8512
cc82680dba7b
child 8881
54e42bc2437a
equal deleted inserted replaced
8513:a7464bea3d0a 8514:736178b32e5a
464 EricMessageBox.critical( 464 EricMessageBox.critical(
465 self, 465 self,
466 self.tr("Translation Error"), 466 self.tr("Translation Error"),
467 data) 467 data)
468 468
469 @pyqtSlot(QMediaPlayer.PlaybackState)
470 def __mediaPlayerPlaybackStateChanged(self, state): 469 def __mediaPlayerPlaybackStateChanged(self, state):
471 """ 470 """
472 Private slot handling changes of the media player state. 471 Private slot handling changes of the media player state.
473 472
474 @param state media player state (QMediaPlayer.PlaybackState) 473 @param state media player state (QMediaPlayer.PlaybackState)
476 if state == QMediaPlayer.PlaybackState.StoppedState: 475 if state == QMediaPlayer.PlaybackState.StoppedState:
477 self.__mediaFile.close() 476 self.__mediaFile.close()
478 self.__mediaFile.remove() 477 self.__mediaFile.remove()
479 self.__mediaFile = None 478 self.__mediaFile = None
480 479
481 @pyqtSlot(QMediaPlayer.Error, str)
482 def __mediaPlayerError(self, error, errorString): 480 def __mediaPlayerError(self, error, errorString):
483 """ 481 """
484 Private slot to handle errors during playback of the data. 482 Private slot to handle errors during playback of the data.
485 483
486 @param error media player error condition 484 @param error media player error condition

eric ide

mercurial