def draw(self, polygon, fill, outline):
        "Draws a polygon on the underlying canvas."
        self.canvas.create_polygon(*itertools.chain(*polygon.vertices),
                                   fill=fill, outline=outline)
Draws a polygon on the underlying canvas.
recipes/Python/578004_processing/recipe-578004.py