insert_segment method

insert_segment

Inserts a path segment to the list of child segments of the last path figure at index position.

Returns

Inserted path segment.

def insert_segment(self, index, segment):
    ...
ParameterTypeDescription
indexintPosition at which a segment should be inserted.
segmentXpsPathSegmentA path segment to be inserted.

See Also