from tkinter import * root = Tk() c = Canvas(root) c.pack() c.create_rectangle(100, 100, 200, 200) root.mainloop()
# create dashed border _canvas.create_rectangle(50, 50, 180, 120,outline="black",fill="blue",dash=(4,6))