efl.evas.Polygon Class

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

Bases: efl.evas.Object

Parameters:
  • 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

Parameters:
  • x (int) – X coordinate
  • y (int) – Y Coordinate
points_clear()

Remove all the points from the polygon