Beispiel #1
0
    def __chapter_switch_changed(self, widget, state):
        """
        Enable/disable stop after chapter mode.
        """
        self.timer_grid.set_sensitive(not state)
        if state:
            if self.sleep_timer and self.sleep_timer.isAlive():
                self.sleep_timer.stop()

            self.set_icon(True)
            player.set_play_next(False)
        else:
            self.__on_timer_changed(None)
Beispiel #2
0
 def play_next_chapter(self, value: bool):
     player.set_play_next(value)