New issue 359 by Bassasi...@gmail.com: Long Press
http://code.google.com/p/pymt/issues/detail?id=359
Hey all,
I would like to simulate a long press?? can anyhelp me as soon as possible??
Thanx alot in advance :)
Comment #1 on issue 359 by dennd...@googlemail.com: Long Press
http://code.google.com/p/pymt/issues/detail?id=359
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