__init__ constructor

On this page

init

Initializes a new instance of Layout.

def __init__(self):
    ...

init

Initializes a new instance of Layout.

def __init__(self, name, width, height):
    ...
Parameter Type Description
name str The name of the layout.
width float The width of the layout in pixels.
height float The height of the layout in pixels.
Raises Description
ValueError When name is None or empty.

See Also

On this page