__init__ constructor

On this page

init

Initializes a new Resource instance.

def __init__(self):
    ...

init

Initializes a new Resource instance.

def __init__(self, file_name, nested):
    ...
Parameter Type Description
file_name str Resource file name.
nested bool Indicates whether resource resides inside another resource, e.g. font resource that resides in CSS or SVG resource.
Raises Description
ValueError Raised when file_name is None or empty.

See Also

On this page