Video player by Python tkinter, When I pause video, I cannot re-play

后端 未结 4 1043
时光说笑
时光说笑 2021-01-19 05:06

I am creating GUI to play video files. The problem is that when I pause video, Play button cannot re-play that video, and I have to select video file again.

Note: S

4条回答
  •  情话喂你
    2021-01-19 05:21

    Simply add in the play_video(self) method:

    if self.pause == True:
        self.pause = False
        return
     
    

提交回复
热议问题