__init__ constructor

On this page

init

Initializes a new TocItem instance.

def __init__(self, depth, text, page_index):
    ...
Parameter Type Description
depth int The depth level of the item.
text str The text of the item.
page_index Optional[int] The index of the page referenced by the item.

See Also

On this page