equals method
Leave feedback
On this page
Compares dimensions with another size.
def equals(self, item):
...
| Parameter | Type | Description |
|---|---|---|
| item | Size |
The size to compare with. |
Returns: bool: True when width and height match; otherwise False.
Compares this size with another object.
def equals(self, item):
...
| Parameter | Type | Description |
|---|---|---|
| item | Any |
The object to compare with. |
Returns: True when item is a matching Size; otherwise False.
These names call equals too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
equals_size |
equals_size(item) |
equals_object |
equals_object(item) |
- class
Size
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.