Issue 359 in pymt: Long Press

0 views
Skip to first unread message

py...@googlecode.com

unread,
Jun 10, 2011, 12:46:23 PM6/10/11
to pymt-...@googlegroups.com
Status: New
Owner: txprog

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 :)

py...@googlecode.com

unread,
Jun 10, 2011, 12:57:34 PM6/10/11
to pymt-...@googlegroups.com
Updates:
Status: Invalid

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

Reply all
Reply to author
Forward
0 new messages