📜  tkinter draw squaer - Python 代码示例

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

代码示例2
from Tkinter import *
master = Tk()

w = Canvas(master, width=250, height=200)
w.create_rectangle(0, 0, 100, 100, fill="blue", outline = 'blue')
w.create_rectangle(50, 50, 100, 100, fill="red", outline = 'blue') 
w.pack()
master.mainloop()