__init__ constructor

On this page

init

Initializes a new instance of Word.

def __init__(self):
    ...

init

Initializes a new instance of Word.

def __init__(self, word, x, y, width, height, characters):
    ...
Parameter Type Description
word str The word.
x float The X coordinate of the highest left point on the page layout where the rectangle that contains word begins.
y float The Y coordinate of the highest left point on the page layout where the rectangle that contains word begins.
width float The width of the rectangle which contains the word.
height float The height of the rectangle which contains the word.
characters List[Character] The characters contained by the word.
Raises Description
ValueError When characters is null.

See Also

On this page