Skip to content
New issue

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

sensorless AO feedback in std out not status bar. #11

Open
iandobbie opened this issue Apr 27, 2021 · 2 comments
Open

sensorless AO feedback in std out not status bar. #11

iandobbie opened this issue Apr 27, 2021 · 2 comments

Comments

@iandobbie
Copy link
Member

We should put the progress feedback from the sensorless AO optimisation into the status bar not just printed into the stdout.

@carandraug
Copy link
Member

To do this, the code needs to first register a "light" name by emitting an event with an empty message. Like so:

AO_LIGHT_NAME = "sensorless AO feedback"
cockpit.events.publish(cockpit.events.UPDATE_STATUS_LIGHT, AO_LIGHT_NAME, "")

From then on, there will a field of the status bar that will display messages from that:

cockpit.events.publish(cockpit.events.UPDATE_STATUS_LIGHT, AO_LIGHT_NAME, "some update")

Any message will colour the status bar. When it is done, it should send an empty message so that the status bar reverts back to background colour:

cockpit.events.publish(cockpit.events.UPDATE_STATUS_LIGHT, AO_LIGHT_NAME, "")

@carandraug carandraug transferred this issue from microscope-cockpit/cockpit May 18, 2021
@carandraug
Copy link
Member

Since this work has been merged into the microscope-aotools package instead, I have migrated the issue to this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants