Rectangle class
An object that describes a rectangular region.
Rectangle method
Syntax
obj = Rectangle(left, top, width, height)
Parameters
left
Type: int
The left edge of the rectangular region.
top
Type: int
The top edge of the rectangular region.
width
Type: int
The width of the rectangular region.
height
Type: int
The height of the rectangular region.
Return value
Type: None
height property
Syntax
obj.height = value
value = obj.height
Type: int
The height of the rectangular region.
left property
Syntax
obj.left = value
value = obj.left
Type: int
The left edge of the rectangular region.
top property
Syntax
obj.top = value
value = obj.top
Type: int
The top edge of the rectangular region.
width property
Syntax
obj.width = value
value = obj.width
Type: int
The top edge of the rectangular region.