__init__ constructor
Leave feedback
On this page
Initializes a new instance of Word.
def __init__(self):
...
Initializes a new instance of Word.
def __init__(self, word, x, y, width, height, characters):
...
| Parameter | Type | Description |
|---|---|---|
| word | str |
The word. |
| x | float |
The X coordinate of the highest left point on the page layout where the rectangle that contains word begins. |
| y | float |
The Y coordinate of the highest left point on the page layout where the rectangle that contains word begins. |
| width | float |
The width of the rectangle which contains the word. |
| height | float |
The height of the rectangle which contains the word. |
| characters | List[Character] |
The characters contained by the word. |
| Raises | Description |
|---|---|
ValueError |
When characters is null. |
- class
Word
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.