def createenarrow(self, shape): """ This function creates the Arrows at the end point of a shape when the shape is selected. @param shape: The shape for which the Arrow shall be created. """ length = 20 end, end_ang = shape.get_st_en_points(1) arrow = Arrow(startp=end, length=length, angle=end_ang, color=QtGui.QColor(0, 245, 100), pencolor=QtGui.QColor(0, 180, 50), dir=1) arrow.hide() return arrow
def createstarrow(self, shape): """ This function creates the Arrows at the end point of a shape when the shape is selected. @param shape: The shape for which the Arrow shall be created. """ length = 20 start, start_ang = shape.get_st_en_points(0) arrow = Arrow(startp=start, length=length, angle=start_ang, color=QtGui.QColor(50, 200, 255), pencolor=QtGui.QColor(50, 100, 255)) arrow.hide() return arrow