[Techtalk] Detection of mouse-clicks and/or keypresses in Python

Maria Pinjanainen maria at tietonoita.fi
Wed Jun 3 19:05:45 UTC 2015


On 03.06.2015 19:38, David Sumbler wrote:
> Actually this looks as if it could be just what I was looking for.  I
> actually need timing to a fraction of a second, but removing the sleep
> and adding :%f to display microseconds seems to show that it would serve
> my purpose pretty well.
>
> Shame it doesn't work for mouse clicks, but I can probably manage with
> key-presses.
>
> Thanks a lot.
>
> David
I do not know what would be the *simplest* way of doing it, but it
*could* be done with Qt and PyQt... We have done that for python 2.7 and
Qt 4.7 but not for 3 and 5, it might be that things have changed quite a
lot...

--
m


More information about the Techtalk mailing list