Home | Trees | Indices | Help |
---|
|
1 # -*- coding: utf-8 -*- 2 # Elisa - Home multimedia server 3 # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 4 # All rights reserved. 5 # 6 # This file is available under one of two license agreements. 7 # 8 # This file is licensed under the GPL version 3. 9 # See "LICENSE.GPL" in the root of this distribution including a special 10 # exception to use Elisa with Fluendo's plugins. 11 # 12 # The GPL part of Elisa is also available under a commercial licensing 13 # agreement from Fluendo. 14 # See "LICENSE.Elisa" in the root directory of this distribution package 15 # for details on that license. 16 17 __maintainer__ = 'Florian Boucault <florian@fluendo.com>' 18 19 20 from elisa.core import common 21 from elisa.core.input_event import * 22 23 from pgm.widgets import const 24 25 plugin_registry = common.application.plugin_registry 26 ListController = plugin_registry.get_component_class('raval:list_controller') 27294731 if input_event.action == EventAction.GO_RIGHT: 32 if len(self.model) > 0: 33 self.current_index = (self.current_index + 1) % len(self.model) 34 return True 35 36 elif input_event.action == EventAction.GO_LEFT: 37 if len(self.model) > 0: 38 self.current_index = (self.current_index - 1) % len(self.model) 39 return True 40 41 elif input_event.action in (EventAction.GO_UP, EventAction.GO_DOWN): 42 # Ensure, that it is not doing anything 43 return True 44 45 else: 46 return ListController.handle_input(self, input_event)
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:55 2008 | http://epydoc.sourceforge.net |