Thickness constructor

Contents
[ ]

init

Initializes a new instance of the Thickness class that has the specified uniform length on each side.

def __init__(self, uniform_length):
    ...
Parameter Type Description
uniform_length float The uniform length applied to all four sides of the bounding rectangle.

init

Initializes a new instance of the Thickness class that has specific lengths applied to each side of the rectangle.

def __init__(self, left, right, top, bottom):
    ...
Parameter Type Description
left float The thickness for the left side of the rectangle.
right float The thickness for the right side of the rectangle.
top float The thickness for the top side of the rectangle.
bottom float The thickness for the bottom side of the rectangle.

See Also