python tkinter canvas create rectangle code example
Example: rectangle in tkinter
from tkinter import *
root = Tk()
c = Canvas(root)
c.pack()
c.create_rectangle(100, 100, 200, 200)
root.mainloop()
from tkinter import *
root = Tk()
c = Canvas(root)
c.pack()
c.create_rectangle(100, 100, 200, 200)
root.mainloop()