Draws a polygon on the underlying canvas.
(self, polygon, fill, outline)
| 47 | self.canvas = canvas |
| 48 | |
| 49 | def draw(self, polygon, fill, outline): |
| 50 | "Draws a polygon on the underlying canvas." |
| 51 | self.canvas.create_polygon(*itertools.chain(*polygon.vertices), |
| 52 | fill=fill, outline=outline) |
| 53 | |
| 54 | def write(self, x, y, text, fill): |
| 55 | "Writes the text to bottom-left of location." |