예제 #1
0
	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)
예제 #2
0
	def event_action_menu(self, event):
		GenericPlayerEventHandler.event_action_menu(self, event)
예제 #3
0
	def event_toggle_menu(self, event):
		if self.player.get_item_list('edit_list'):
			return True
		return GenericPlayerEventHandler.event_toggle_menu(self, event)
예제 #4
0
 def event_action_menu(self, event):
     sleep(1)
     ret = GenericPlayerEventHandler.event_action_menu(self, event)
     self.player.action_play()
     return ret
예제 #5
0
				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:
예제 #6
0
	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)
예제 #7
0
	def __init__(self, player):
		GenericPlayerEventHandler.__init__(self, player)
		self.player.sshow_interval = self.sshow_delays[0]
예제 #8
0
	def __init__(self, player):
		GenericPlayerEventHandler.__init__(self, player)
예제 #9
0
 def event_toggle_menu(self, event):
     return GenericPlayerEventHandler.event_toggle_menu(self, event)
예제 #10
0
	def event_toggle_menu(self, event):
		return GenericPlayerEventHandler.event_toggle_menu(self, event)