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
You can set the stop button combination with hub.system.set_stop_button but not currently read it.
hub.system.set_stop_button
It would be nice if you could read it. Then you can restore it after running code that raises an exception.
We do that in a few places in the firmware right now, but can't currently do that in Python.
The text was updated successfully, but these errors were encountered:
Maybe too fancy, but it would be cool if hub.system.set_stop_button() returned a context manager object, then we could write:
hub.system.set_stop_button()
with hub.system.set_stop_button(...): # main code here ...
Everything would be done in a single line rather than having to have a separate getter function and a try/finally block.
Sorry, something went wrong.
No branches or pull requests
You can set the stop button combination with
hub.system.set_stop_button
but not currently read it.It would be nice if you could read it. Then you can restore it after running code that raises an exception.
We do that in a few places in the firmware right now, but can't currently do that in Python.
The text was updated successfully, but these errors were encountered: