Jump to content


Photo

hover event

plugin

  • Please log in to reply
1 reply to this topic

#1 mirco

  • Member
  • 5 posts

0
Neutral

Posted 30 July 2014 - 10:54

hi,please how can i handle hover event when i zap on my plugin list (not clicking ,just zaping) ? :huh:



Re: hover event #2 mirco

  • Member
  • 5 posts

0
Neutral

Posted 31 July 2014 - 09:34

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!





Also tagged with one or more of these keywords: plugin

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users