def on_space(self, *args): # space : play from the current position if player.is_playing(): player.stop() else: self.on_play_from_here()
def on_stop_playing (self, *args): player.stop() def on_space(self, *args): # space : play from the current position