개정판 d7ddc5c0
dev issue #637: edit spec break item logic
DTI_PID/DTI_PID/Commands/DefaultCommand.py | ||
---|---|---|
127 | 127 |
self.symbol.specBreak_offsetX = offsetX |
128 | 128 |
self.symbol.specBreak_offsetY = offsetY |
129 | 129 |
|
130 |
connLoc = self.symbol.connectors[0]._loc |
|
131 |
self.symbol.connectors[0].setPos((float(connLoc[0] + offsetX), float(connLoc[1] + offsetY))) |
|
132 |
self.symbol.loc = (self.symbol.loc[0] - offsetX, self.symbol.loc[1] - offsetY) |
|
133 |
|
|
130 |
self.symbol.connectors[0].connectPoint = (self.symbol.connectors[0].connectPoint[0] + offsetX, self.symbol.connectors[0].connectPoint[1] + offsetY) |
|
131 |
self.symbol.connectors[0].setPos((self.symbol.connectors[0].connectPoint[0], self.symbol.connectors[0].connectPoint[1])) |
|
134 | 132 |
|
135 | 133 |
self.symbol = None |
136 | 134 |
self.isCopy = False |
내보내기 Unified diff