📜  如何在 tkinter 中绘制多边形 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:06.685000             🧑  作者: Mango

代码示例1
from tkinter import *

root = Tk()

c = Canvas(root)
c.pack()

points = [x1,y1, x2,y2, xn,yn]
c.create_polygon(points)

root.mainloop()