mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

Long Press #359

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey all,

I would like to simulate a long press?? can anyhelp me as soon as possible??

Thanx alot in advance :)

Original issue reported on code.google.com by Bassasi...@gmail.com on 10 Jun 2011 at 4:45

GoogleCodeExporter commented 9 years ago
Hi,

First of all, if this is for a New project, consider using Kivy instead, see 
Kivy.org and http://kivy.org/docs/faq.html#how-is-kivy-related-to-pymt

What you want to do can be achieved the same way in either framework, I.e. 
assuming you want to *detect* a long press, simply listen for on_touch_down and 
on_touch_up events in your widget (and use a Clock timer if you want to do 
something even before the press goes up, I.e. After a timeout).
You can check if it's the same touch by looking up the touch's id property for 
instance.

I am closing this as it is neither a bug report nor a patch.

HTH,
    Christopher

Original comment by dennd...@gmail.com on 10 Jun 2011 at 4:56