__init__ constructor

On this page

init

Initializes a new instance of Line.

def __init__(self):
    ...

init

Initializes a new instance of the Line class.

def __init__(self, line, x, y, width, height, words):
    ...
Parameter Type Description
line str The line.
x float The X coordinate of the highest left point on the page layout where the rectangle that contains line begins.
y float The Y coordinate of the highest left point on the page layout where the rectangle that contains line begins.
width float The width of the rectangle which contains the line (in pixels).
height float The height of the rectangle which contains the line (in pixels).
words List[Word] The words contained by the line.
Raises Description
ValueError Raised when line is null or empty, or when words is null.

See Also

On this page