Skip to content

Conversation

@idbrii
Copy link

@idbrii idbrii commented May 29, 2020

Clarify that you need to wait to keep the script active so it can listen
to hotkeys (it does not spawn a process in the background that will wait
for them).

The line "For an example of how to use a callback synchronously, see
wait." indicates that wait is an alternative to add_hotkey and a
helpful way to use it.

wait seems to be a better alternative to while True: pass.

I found it difficult to figure out how to write a script that just waits
for hotkeys, and this addition would have helped me.

Clarify that you need to wait to keep the script active so it can listen
to hotkeys (it does not spawn a process in the background that will wait
for them).

The line "For an example of how to use a callback synchronously, see
`wait`." indicates that `wait` is an alternative to add_hotkey and a
helpful way to use it.

wait seems to be a better alternative to `while True: pass`.

I found it difficult to figure out how to write a script that just waits
for hotkeys, and this addition would have helped me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant