def shape(self):
        # Setup and stroke the line
        path = QtGui.QPainterPath(self.sourcePoint)
        path.lineTo(self.destPoint)
        stroker = QtGui.QPainterPathStroker()
        stroker.setWidth(2)
        stroked = stroker.createStroke(path)
        # Add a square at the tip
        stroked.addRect(self.destPoint.x()-10, self.destPoint.y()-10, 20, 20)
        return stroked
The QT shape function.
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_graphics_widgets.py/DrawEdge.shape