MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / execute

Method execute

src/commands/node/basic_operations.py:635–643  ·  view source on GitHub ↗

Move node to new position.

(self)

Source from the content-addressed store, hash-verified

633 self.new_position = new_position
634
635 def execute(self) -> bool:
636 """Move node to new position."""
637 try:
638 self.node.setPos(self.new_position)
639 self._mark_executed()
640 return True
641 except Exception as e:
642 print(f"Failed to move node: {e}")
643 return False
644
645 def undo(self) -> bool:
646 """Move node back to original position."""

Callers 1

Calls 1

_mark_executedMethod · 0.80

Tested by 1