개정판 1b502652
SymbolGenerator 수정 및 potrace를 이용한 svg파일 생성
DTI_PID/DTI_PID/Commands/ConnectionPointCommand.py | ||
---|---|---|
44 | 44 |
clickedY = int(scenePos.y()) |
45 | 45 |
|
46 | 46 |
if (clickedX >= 0 and clickedX <= width) and (clickedY >= 0 and clickedY <= height): |
47 |
self.imageViewer.scene.addItem(self.imageViewer.scene.addEllipse(QRectF(scenePos.x() - 0.5, scenePos.y() - 0.5, 1, 1), QPen(QColor(0, 0, 255)), QBrush(QColor(0, 0, 255))))
|
|
47 |
self.imageViewer.scene.addItem(self.imageViewer.scene.addEllipse(QRectF(int(scenePos.x()) - 0.5, int(scenePos.y()) - 0.5, 1, 1), QPen(QColor(0, 0, 255)), QBrush(QColor(0, 0, 255))))
|
|
48 | 48 |
#self.isSelected = True |
49 | 49 |
text = "{},{}".format(clickedX, clickedY) |
50 | 50 |
self.connectionPointLineEdit.setText(text) |
내보내기 Unified diff