B
B
bychok3002017-03-05 18:31:45
linux
bychok300, 2017-03-05 18:31:45

How to fix cursor movement time?

How to do it? I can't google it, preferably using python. The bottom line is that you run a python script, it starts counting the time and shows how much the cursor has been in motion since the script was launched.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2017-03-05
@bychok300

Look in the direction of wxwidgets or qt and binding these libraries with python. There is a standard demo application called xeyes (eyes), this application just keeps track of the cursor and draws eyes. Initially, this application was written in C on pure xlibs, but the functionality should be present in any framework.
Here is the class in wxwidgets that intercepts mouse events - docs.wxwidgets.org/3.1.0/classwx_mouse_event.html
Well, just in case - docs.wxwidgets.org/3.1.0/overview_events.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question