(self)
| 569 | # -- Project JSON editing capabilities --- |
| 570 | # These are set to staticmethods right now, but they probably should not be |
| 571 | def connect_empty_project_pb(self) -> editor.Project: |
| 572 | pb = editor.Project.from_json( |
| 573 | empty_project_json |
| 574 | ) # in the future, ideally just init a new editor.Project, instead of loading an empty one |
| 575 | pb._session = self |
| 576 | return pb |
| 577 | |
| 578 | def connect_pb_from_dict(self, project_json: dict) -> editor.Project: |
| 579 | pb = editor.Project.from_json(project_json) |