Create a new scene.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected