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

Method on_new_scene

src/ui/editor/node_editor_window.py:228–234  ·  view source on GitHub ↗

Create a new scene.

(self)

Source from the content-addressed store, hash-verified

226
227 # File operation handlers
228 def on_new_scene(self):
229 """Create a new scene."""
230 # Save view state for current file before creating new scene
231 if self.file_ops.current_file_path:
232 self.view_state.save_view_state(self.file_ops.current_file_path)
233 self.file_ops.new_scene()
234 self.view.resetTransform()
235
236 def on_save(self):
237 """Save the current graph."""

Callers

nothing calls this directly

Calls 2

save_view_stateMethod · 0.80
new_sceneMethod · 0.80

Tested by

no test coverage detected