__init__ constructor
Leave feedback
On this page
Initializes a new Resource instance.
def __init__(self):
...
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. |
- class
Resource
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.