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

Method _setup_managers

src/ui/editor/node_editor_window.py:89–109  ·  view source on GitHub ↗

Initialize the manager components.

(self)

Source from the content-addressed store, hash-verified

87 self._create_toolbar()
88
89 def _setup_managers(self):
90 """Initialize the manager components."""
91 # File operations manager
92 self.file_ops = FileOperationsManager(self, self.graph, self.output_log, self.default_env_manager)
93
94 # View state manager
95 self.view_state = ViewStateManager(self.view, self.file_ops)
96
97 # Execution controller (initialized after toolbar creation)
98 self.execution_ctrl = ExecutionController(
99 self.graph,
100 self.output_log,
101 self._get_current_venv_path,
102 self.exec_widget.main_exec_button,
103 self.exec_widget.status_label,
104 ButtonStyleManager.get_button_style,
105 self.file_ops
106 )
107
108 # Set execution controller reference in file operations
109 self.file_ops.set_execution_controller(self.execution_ctrl)
110
111 def _get_current_venv_path(self):
112 """Provides the full path to the venv for the current graph."""

Callers 1

__init__Method · 0.95

Calls 4

ExecutionControllerClass · 0.90
ViewStateManagerClass · 0.85

Tested by

no test coverage detected