equals method

On this page

equals

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.

equals

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.

Aliases

These names call equals too, limited to the overloads listed.

Alias Accepts
equals_size equals_size(item)
equals_object equals_object(item)

See Also

On this page