1from tkinter import *
2
3root = Tk()
4
5c = Canvas(root)
6c.pack()
7
8points = [x1,y1, x2,y2, xn,yn]
9c.create_polygon(points)
10
11root.mainloop()
1create_polygon()
2create_polygon(points, fill)
3create_polygon(points, fill, outline, width)
4create_polygon(points, fill, outline)
5create_polygon(points, y, x2, y2, x3, y3, fill)