Closed alexdewar closed 7 months ago
Hi Alex, this is a good solution thank you.
A red light is often used to mean "recording in progress" though, e.g. on camcorders, so that was my logic. It's also more eye-catching than green IMO. That's the same reason I made the light blink, to draw the user's attention to it. I take your point that it might make more sense to sync the blinking with when data is actually recorded, though.
Ah yes, fair point!
I've finished adding all the tests now, so we have 100% coverage for the changed files.
I also followed Dan's suggestion of flashing the LED when the data is actually being written.
Description
@jonemurray has pointed out that it isn't currently obvious whether or not recording is taking place, so it is easy to forget to start recording before e.g. running a measure script.
I've tried to remedy this in two ways:
QLabel
Widget when recording is stopped:
Widget when recording is running (with flashing LED):
Suggestions on how to improve the appearance of the widget are welcome! (In particular, it looks a little odd the way the controls move around when the user starts/stops recording.) That said, I think it's perfectly usable as is :smile:
Fixes #526.
I've broken tests (hence why this is a draft PR), but I'll fix them up if everyone is happy with this solution.
Type of change
Key checklist
pre-commit run -a
)pytest
)mkdocs build -s
)pyinstaller
-built executable works (if relevant)Further checks