code: def create_regpoly(self, x0, y0, x1, y1, sides=0, start=90, extent=360, **kw):
          
          coords = self.__regpoly_coords(x0, y0, x1, y1, sides, start, extent)
          return self.canvas.create_polygon(*coords, **kw)
docs: Create a regular polygon