Size constructor

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

Creates a size with the specified width and height. Float values are truncated to integers.

def __init__(self, width=0, height=0):
    ...
ParameterTypeDescription
widthintThe width component of the new size.
heightintThe height component of the new size.

Exceptions

ExceptionDescription
TypeErrorA component is not a number.

See Also