MCPcopy Index your code
hub / github.com/bhowiebkr/PyFlowGraph / execute_command

Method execute_command

src/core/node_graph.py:57–62  ·  view source on GitHub ↗

Execute a command and add it to history.

(self, command)

Source from the content-addressed store, hash-verified

55 return None
56
57 def execute_command(self, command):
58 """Execute a command and add it to history."""
59 success = self.command_history.execute_command(command)
60 if success:
61 self.commandExecuted.emit(command.get_description())
62 return success
63
64 def undo_last_command(self):
65 """Undo the last command."""

Callers 15

keyPressEventMethod · 0.95
_paste_with_commandMethod · 0.95
create_nodeMethod · 0.95
remove_nodeMethod · 0.95
create_connectionMethod · 0.95
remove_connectionMethod · 0.95
finish_resizeMethod · 0.45
_handle_acceptMethod · 0.45

Calls 1

get_descriptionMethod · 0.45