add_comment method

add_comment(shape_id, comment)

Adds comment to a shape with shape’s id.

def add_comment(self, shape_id, comment):
    ...
Parameter Type Description
shape_id int
comment str Comment’s string.

add_comment(shape, comment)

Adds comment to a shape.

def add_comment(self, shape, comment):
    ...
Parameter Type Description
shape Shape Specifies the shape which is adding comment .
comment str Comment’s string.

add_comment(pin_x, pin_y, comment)

Adds comment with defined PinX and PinY.

def add_comment(self, pin_x, pin_y, comment):
    ...
Parameter Type Description
pin_x float Specifies the x-coordinate of the comment’s pin (center of rotation) in relation to the page.
pin_y float Specifies the y-coordinate of the comment’s pin (center of rotation) in relation to the page.
comment str Comment’s string.

See Also