efl.evas.Polygon Class

class efl.evas.Polygon(Canvas canvas, points=None, **kwargs)

Bases: efl.evas.Object

A polygon.

  • canvas (Canvas) – Evas canvas for this object

  • points (list of tuple of x, y int pairs) – Points of the polygon

  • **kwargs – All the remaining keyword arguments are interpreted as properties of the instance

point_add(x, y)

Add a new point to the polygon

  • x (int) – X coordinate

  • y (int) – Y Coordinate


Remove all the points from the polygon