개정판 30b8dfd2
issue #538: symbol conn edit allowed
Change-Id: I751dc7c0bec41aa521c5aefeebec5fe0b919ae93
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
685 | 685 |
self.connectors[index].setPos((x, y)) |
686 | 686 |
self.connectors[index].connectPoint = (x, y) |
687 | 687 |
# recognized_pt is only valid right after symbol is recognized |
688 |
self.connectors[index].recognized_pt = (connPts[index][0], connPts[index][1]) if \ |
|
689 |
len(connPts[index]) == 2 else (connPts[index][1], connPts[index][2]) if \ |
|
690 |
len(connPts[index]) == 3 else (connPts[index][1], connPts[index][2]) if \ |
|
691 |
len(connPts[index]) == 4 else None |
|
688 |
if index < len(connPts): |
|
689 |
self.connectors[index].recognized_pt = (connPts[index][0], connPts[index][1]) if \ |
|
690 |
len(connPts[index]) == 2 else (connPts[index][1], connPts[index][2]) if \ |
|
691 |
len(connPts[index]) == 3 else (connPts[index][1], connPts[index][2]) if \ |
|
692 |
len(connPts[index]) == 4 else None |
|
692 | 693 |
# up to here |
693 | 694 |
self.parentSymbol = parentSymbol |
694 | 695 |
self.childSymbol = childSymbol |
내보내기 Unified diff