hi i do something like this but it's doesn't work correctly
class Handlingevent(Screen): skin = """ <screen position="100,150" size="460,400" title="Ihad.tv tutorial e2-tutorial lesson 5" > <widget name="myMenu" position="10,10" size="420,380" scrollbarMode="showOnDemand" /> </screen>""" def __init__(self, session, args = 0): self.session = session list = [] list.append("test1") list.append("test2") list.append("test3") list.append("test4") Screen.__init__(self, session) self["myMenu"] = MenuList(list) self["myActionMap"] = ActionMap(["DirectionActions"], { "up": self.key_up, "down": self.key_up, }, -1) def key_up(self): print "handling event"
please help!