Start the real-time display in a background thread.
(self)
| 47 | pass |
| 48 | |
| 49 | def start_display(self) -> threading.Thread: |
| 50 | """Start the real-time display in a background thread.""" |
| 51 | if self._display_thread and self._display_thread.is_alive(): |
| 52 | return self._display_thread |
| 53 | |
| 54 | self._stop_event.clear() |
| 55 | self._display_thread = threading.Thread(target=self._display_loop, daemon=True) |
| 56 | self._display_thread.start() |
| 57 | return self._display_thread |
| 58 | |
| 59 | def stop_display(self) -> None: |
| 60 | """Stop the display thread.""" |
no test coverage detected