Apply multiple driver connection properties to a source in one call. For source 0 in single-source ProjectFile mode this is equivalent to the user editing the Setup panel: changes propagate to the UI and are saved into source[0].connectionSettings. For multi-source
(self, source_id: int, settings: dict)
| 633 | return self.command("project.source.getConfig", {"sourceId": source_id}) |
| 634 | |
| 635 | def source_configure(self, source_id: int, settings: dict) -> None: |
| 636 | """ |
| 637 | Apply multiple driver connection properties to a source in one call. |
| 638 | |
| 639 | For source 0 in single-source ProjectFile mode this is equivalent to |
| 640 | the user editing the Setup panel: changes propagate to the UI and are |
| 641 | saved into source[0].connectionSettings. For multi-source projects |
| 642 | (sourceId >= 1) uses the editing-driver path. |
| 643 | |
| 644 | Args: |
| 645 | source_id: Source ID (0 for primary/single-source projects) |
| 646 | settings: Dict of driver property key/value pairs, e.g. |
| 647 | {"address": "127.0.0.1", "tcpPort": 9000, "socketTypeIndex": 0} |
| 648 | """ |
| 649 | self.command( |
| 650 | "project.source.setProperties", |
| 651 | {"sourceId": source_id, "settings": settings}, |
| 652 | ) |
| 653 | |
| 654 | def source_set_frame_parser_code(self, source_id: int, code: str) -> None: |
| 655 | """Set per-source JavaScript frame parser code.""" |