Return the netlist line for this library link.
(self)
| 46 | self.setToolTip(self.file_path) |
| 47 | |
| 48 | def netlist_line(self) -> str: |
| 49 | """Return the netlist line for this library link.""" |
| 50 | path = self.file_path |
| 51 | if " " in path: |
| 52 | path = f'"{path}"' |
| 53 | parts = [f".{self.directive}", path] |
| 54 | if self.corner: |
| 55 | parts.append(self.corner) |
| 56 | return " ".join(parts) |
| 57 | |
| 58 | def itemChange(self, change, value): |
| 59 | if change == QGraphicsItem.ItemPositionChange: |