MCPcopy Index your code
hub / github.com/csev/py4e / __init__

Method __init__

code/graphics/graphics.py:674–679  ·  view source on GitHub ↗
(self, *points)

Source from the content-addressed store, hash-verified

672class Polygon(GraphicsObject):
673
674 def __init__(self, *points):
675 # if points passed as a list, extract it
676 if len(points) == 1 and type(points[0]) == type([]):
677 points = points[0]
678 self.points = map(Point.clone, points)
679 GraphicsObject.__init__(self, ["outline", "width", "fill"])
680
681 def clone(self):
682 other = apply(Polygon, self.points)

Callers

nothing calls this directly

Calls 2

mapFunction · 0.50
__init__Method · 0.45

Tested by

no test coverage detected