__init__ constructor

On this page

init

Initializes a new PageTextArea instance.

def __init__(self, text, page, rectangle):
    ...
Parameter Type Description
text str The value of the text.
page Page The page that contains the text area.
rectangle Rectangle The rectangular area that contains the text area.

init

Initializes a new PageTextArea.

def __init__(self, text, base_line, text_style, page, rectangle):
    ...
Parameter Type Description
text str The value of the text.
base_line Optional[float] The base line of the text.
text_style TextStyle The style of the text.
page Page The page that contains the text area.
rectangle Rectangle The rectangular area that contains the text area.

init

Initializes a new PageTextArea instance.

def __init__(self, areas, page):
    ...
Parameter Type Description
areas Iterable[PageTextArea] The collection of child text page areas.
page Page The page that contains the text area.

See Also

On this page