create_rectangle tkinter code example
Example 1: rectangle in tkinter
from tkinter import *
root = Tk()
c = Canvas(root)
c.pack()
c.create_rectangle(100, 100, 200, 200)
root.mainloop()
Example 2: tkinter draw squaer
canvas.create_rectangle(30, 10, 120, 80,
outline="#fb0", fill="#fb0")