import tkinter as tk

master = tk.Tk()

w = tk.Canvas(master, width=200, height=100)
w.pack()

w.drawString(10,10,"Hi")
w.create_line(0, 0, 200, 100)
w.create_line(0, 100, 200, 0, fill="red", dash=(4, 4))

w.create_rectangle(50, 25, 150, 75, fill="blue")

master.mainloop()