We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello ...
I have this code
class mouseevent(PyMouseEvent): def __init__(self): PyMouseEvent.__init__(self) def move(self, x, y): global lastKey lastKey = time.time() class keyevent(PyKeyboardEvent): def __init__(self): super(keyevent, self).__init__() def tap(self, keycode, character, press): global lastKey lastKey = time.time() keyHandlerThread = keyevent() mouseHandlerThread = mouseevent() keyHandlerThread.start() mouseHandlerThread.run()
Works fine!
But on close application i get: Runtime Error: R6031
Apparently the threads are not killed. Someone with this problem?
Thanks in advance
The text was updated successfully, but these errors were encountered:
You should start and stop event threads with run() and stop() methods, or call thread.join() after start() method.
run()
stop()
thread.join()
start()
Sorry, something went wrong.
No branches or pull requests
Hello ...
I have this code
Works fine!
But on close application i get:
Runtime Error: R6031
Apparently the threads are not killed. Someone with this problem?
Thanks in advance
The text was updated successfully, but these errors were encountered: