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

Method _on_connected

src/gui_controller.py:569–589  ·  view source on GitHub ↗

Handle successful connection to puppet.

(self)

Source from the content-addressed store, hash-verified

567 self._monitor_thread.start()
568
569 def _on_connected(self):
570 """Handle successful connection to puppet."""
571 self._show_status("Connected to puppet!", "success")
572
573 # Enable controls
574 self.expression_group.set_sensitive(True)
575 self.motion_group.set_sensitive(True)
576 self.overlay_group.set_sensitive(True)
577
578 # Apply initial settings
579 settings = {
580 "address": self.viewer_url,
581 "model": self.current_model_path,
582 "scale": self.scale_row.get_value() * 100,
583 "extra_w": self.extra_w_row.get_value(),
584 "extra_h": self.extra_h_row.get_value()
585 }
586 self.controller.set_settings(settings)
587
588 # Load expressions and motions after 5 seconds
589 GLib.timeout_add_seconds(5, self._load_expressions_and_motions)
590
591 def _load_expressions_and_motions(self):
592 """Load expressions and motions from puppet."""

Callers

nothing calls this directly

Calls 2

_show_statusMethod · 0.95
set_settingsMethod · 0.45

Tested by

no test coverage detected