comparison cagou/plugins/plugin_wid_remote.py @ 349:33244f944bd8

core: "key_input" method is now checked and used if suitable in selected widget.
author Goffi <goffi@goffi.org>
date Fri, 17 Jan 2020 18:44:35 +0100
parents e2b51663d8b8
children 4d660b252487
comparison
equal deleted inserted replaced
348:38fd457b2158 349:33244f944bd8
32 from sat_frontends.tools import jid 32 from sat_frontends.tools import jid
33 from kivy import properties 33 from kivy import properties
34 from kivy.uix.label import Label 34 from kivy.uix.label import Label
35 from kivy.uix.boxlayout import BoxLayout 35 from kivy.uix.boxlayout import BoxLayout
36 from kivy.uix.floatlayout import FloatLayout 36 from kivy.uix.floatlayout import FloatLayout
37 from kivy.core.window import Window
38 from cagou import G 37 from cagou import G
39 from functools import partial 38 from functools import partial
40 39
41 40
42 log = logging.getLogger(__name__) 41 log = logging.getLogger(__name__)
185 def __init__(self, host, target, profiles): 184 def __init__(self, host, target, profiles):
186 quick_widgets.QuickWidget.__init__(self, host, target, profiles) 185 quick_widgets.QuickWidget.__init__(self, host, target, profiles)
187 cagou_widget.CagouWidget.__init__(self) 186 cagou_widget.CagouWidget.__init__(self)
188 FilterBehavior.__init__(self) 187 FilterBehavior.__init__(self)
189 TouchMenuBehaviour.__init__(self) 188 TouchMenuBehaviour.__init__(self)
190 Window.bind(on_keyboard=self.key_input)
191 self.stack_layout = None 189 self.stack_layout = None
192 self.showRootWidget() 190 self.showRootWidget()
193 191
194 def errback(self, failure_): 192 def errback(self, failure_):
195 """Generic errback which add a warning note and go back to root widget""" 193 """Generic errback which add a warning note and go back to root widget"""