Stop the puppet.
(self)
| 522 | self._start_monitor() |
| 523 | |
| 524 | def _stop_puppet(self): |
| 525 | """Stop the puppet.""" |
| 526 | self._stop_monitor = True |
| 527 | |
| 528 | self.launcher.stop_puppet() |
| 529 | self.viewer_url = None |
| 530 | self.current_model_path = None |
| 531 | |
| 532 | # Update UI |
| 533 | self.launch_button.set_label("Launch Puppet") |
| 534 | self.launch_button.remove_css_class("destructive-action") |
| 535 | self.launch_button.add_css_class("suggested-action") |
| 536 | |
| 537 | # Disable controls |
| 538 | self.expression_group.set_sensitive(False) |
| 539 | self.motion_group.set_sensitive(False) |
| 540 | self.overlay_group.set_sensitive(False) |
| 541 | |
| 542 | self._show_status("Puppet stopped", "info") |
| 543 | |
| 544 | def _start_monitor(self): |
| 545 | """Start monitoring thread for puppet connection.""" |
no test coverage detected