__init__ constructor
Leave feedback
On this page
Initializes a new instance of the Thickness class that has specific lengths applied to each side of the rectangle.
def __init__(self, left, right, top, bottom):
...
| Parameter | Type | Description |
|---|---|---|
| left | float |
The thickness for the left side of the rectangle. |
| right | float |
The thickness for the right side of the rectangle. |
| top | float |
The thickness for the top side of the rectangle. |
| bottom | float |
The thickness for the bottom side of the rectangle. |
Initializes a new Thickness instance with a uniform length applied to all four sides of the bounding rectangle.
def __init__(self, uniform_length):
...
| Parameter | Type | Description |
|---|---|---|
| uniform_length | float |
The uniform length applied to all four sides of the bounding rectangle. |
- class
Thickness
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.