def getArrowEnd(self, atype): arrowEnd = GObject() if atype == "PREDCESSOR": arrowEnd.centerY((0,self.h)) arrowEnd.x = self.x arrowEnd.y += self.y elif atype == "LOWER": arrowEnd = copy.copy(self.lowerArrowEnd) arrowEnd.x += self.x arrowEnd.y += self.y self.lowerArrowEnd.x += Constants.step.arrow_head_height elif atype == "UPPER": arrowEnd = copy.copy(self.upperArrowEnd) arrowEnd.x += self.x arrowEnd.y += self.y self.upperArrowEnd.x += Constants.step.arrow_head_height return arrowEnd