def event_stop(self, event): play = self.player if play.active_list == 'edit_list': if play.selected == play.get_item_list('main_list').selected: return True play.choices.edited = False play.selected.vfs_delete() del play.choices[play.selected_pos] play.song_changed() else: return GenericPlayerEventHandler.event_stop(self, event)
def event_action_menu(self, event): GenericPlayerEventHandler.event_action_menu(self, event)
def event_toggle_menu(self, event): if self.player.get_item_list('edit_list'): return True return GenericPlayerEventHandler.event_toggle_menu(self, event)
def event_action_menu(self, event): sleep(1) ret = GenericPlayerEventHandler.event_action_menu(self, event) self.player.action_play() return ret
ret = self.player.select_random() else: ret = Menu.select(self.player, event.arg['count'], list_name=al) return True def event_stop(self, event): play = self.player if play.active_list == 'edit_list': if play.selected == play.get_item_list('main_list').selected: return True play.choices.edited = False play.selected.vfs_delete() del play.choices[play.selected_pos] play.song_changed() else: return GenericPlayerEventHandler.event_stop(self, event) def event_select(self, event): if self.player.active_list == 'edit_list': self.player.select(self.player.selected) else: self.player.action_play() return True def event_left(self, event): play = self.player if play.active_list == 'edit_list': el = play.get_item_list('edit_list') if el.edited: el.edited = False else:
def event_action_menu(self, event): self.player.paused_hand_status = self.player.paused self.player.paused = True return GenericPlayerEventHandler.event_action_menu(self, event)
def __init__(self, player): GenericPlayerEventHandler.__init__(self, player) self.player.sshow_interval = self.sshow_delays[0]
def __init__(self, player): GenericPlayerEventHandler.__init__(self, player)
def event_toggle_menu(self, event): return GenericPlayerEventHandler.event_toggle_menu(self, event)