# -*- coding: utf-8 -*- import tkinter as tk #import tkinter.ttk as ttk root = tk.Tk() root.title("tk36.py") ##################################### ca = tk.Canvas(root, bg = 'lightgreen', relief = 'raised', bd = 5, width = 500, height = 500) ca.pack() rec = ca.create_rectangle(10,10,100,100,fill = 'blue', width = 5, outline = 'white', dash = (3,)) ##################################### root.mainloop()