__init__ constructor

init

Initializes a new instance of the Rectangle struct with specified edges.

def __init__(self, left, top, right, bottom):
    ...
Parameter Type Description
left int The left edge of the rectangle.
top int The top edge of the rectangle.
right int The right edge of the rectangle.
bottom int The bottom edge of the rectangle.

See Also