SizeF constructor

init(self, width=0.0, height=0.0)

Creates a size with the specified width and height.

def __init__(self, width=0.0, height=0.0):
    ...
ParameterTypeDescription
widthfloatThe width component of the new size.
heightfloatThe height component of the new size.

Exceptions

ExceptionDescription
TypeErrorA component is not a number.

See Also