Initialize the manager components.
(self)
| 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.""" |
no test coverage detected