MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / _stop_puppet

Method _stop_puppet

src/gui_controller.py:524–542  ·  view source on GitHub ↗

Stop the puppet.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 2

_on_launch_clickedMethod · 0.95
_on_process_diedMethod · 0.95

Calls 2

_show_statusMethod · 0.95
stop_puppetMethod · 0.80

Tested by

no test coverage detected