group method

group

Group the shapes.

Returns

Return the group shape.

def group(self, group_items):
    ...
ParameterTypeDescription
group_itemslistthe group items.

Remarks

The shape in the groupItems should not be grouped. The shape must be in this Shapes collection.

Example


# add first shape
shapes.add_rectangle(2, 0, 2, 0, 50, 50)
# add second shape
shapes.add_rectangle(6, 0, 2, 0, 30, 30)
shapesArr = [shapes[0], shapes[1]]
groupShape = shapes.group(shapesArr)

See Also