MCPcopy Index your code
hub / github.com/NyarchLinux/DesktopPuppet / _on_motion_selected

Method _on_motion_selected

src/gui_controller.py:665–676  ·  view source on GitHub ↗

Play selected motion.

(self, row, pspec)

Source from the content-addressed store, hash-verified

663 self._show_status(f"Failed to apply expression", "error")
664
665 def _on_motion_selected(self, row, pspec):
666 """Play selected motion."""
667 group = self.motion_group_selector.get_selected_item()
668 motion = self.motion_selector.get_selected_item()
669
670 if group and motion:
671 # Format: group/motion
672 motion_path = f"{group.get_string()}/{motion.get_string()}"
673 if self.controller.set_motion(motion_path):
674 self._show_status(f"Playing motion: {motion_path}", "success")
675 else:
676 self._show_status(f"Failed to play motion", "error")
677
678 def _on_overlay_selected(self, row, pspec):
679 """Apply overlay type."""

Callers

nothing calls this directly

Calls 2

_show_statusMethod · 0.95
set_motionMethod · 0.45

Tested by

no test coverage detected