Skip to content

Commit

Permalink
disable track-seekbar in stopped state
Browse files Browse the repository at this point in the history
  • Loading branch information
Charitra Agarwal committed Nov 22, 2020
1 parent 33706c9 commit ef7108e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PyMediaPlayerAbstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def play_pause_icon(self):
else:
icon.addPixmap(QtGui.QPixmap("icon/play.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.PlayPauseButton.setIcon(icon)
if self.player.state() == QMediaPlayer.StoppedState: self.TimeSlider.setEnabled(False)
else: self.TimeSlider.setEnabled(True)

def stop_button(self):
self.player.stop() # stops the player
Expand Down

0 comments on commit ef7108e

Please sign in to comment.