__init__ constructor

On this page

init

Initializes a new instance of the PagesSetup class.

def __init__(self):
    ...

init

Initializes a new instance of the PagesSetup class with specified parameters.

def __init__(self, all_pages, first_page, last_page, odd_pages, even_pages, pages, page_number):
    ...
Parameter Type Description
all_pages bool Whether to include all pages.
first_page bool Whether to include the first page.
last_page bool Whether to include the last page.
odd_pages bool Whether to include odd pages.
even_pages bool Whether to include even pages.
pages List[int] The list of specific page numbers to include.
page_number Optional[int] The index of the current page.

See Also

On this page