Object Methods

.rotate(angle)

Rotates an Easy Draw object by a specified amount of degrees.

Positive numbers rotate the shape clockwise (to the right). Negative numbers rotate the shape counter-clockwise (to the left).

Example:

rect1.rotate(45)

Unsupported objects: Image

.erase()

Deletes the object from the canvas. Once erased, an object can no longer be referenced.

Example:

rect1.erase()

Unsupported objects: None

.to_string()

Returns the string representation of the object. The string will include the object type and ID number used by Easy Draw.

Example:

print(rect1.to_string())

Unsupported objects: None

Others

For information on the .set_property() method see:

pageProperty Getting and Setting

For information on the .event_setup() method see:

pageEvent Handling

Last updated