(self, *points)
| 672 | class 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) |