Images
Images
Note: Tkinter only supports GIF, PGM, PBM, to read JPGs you need to use
the Python Imaging Library
A canvas was the widget that Turtle Graphics uses to draw on!
Example:
from tkinter import *
from tkinter import messagebox
top = Tk()
C = Canvas(top, bg="blue", height=250, width=300)
coord = 10, 50, 240, 210
arc = C.create_arc(coord, start=0, extent=150, fill="red")
line = C.create_line(10,10,200,200,fill='white')
C.pack()
top.mainloop()
Common drawing methods
oval = C.create_oval(x0, y0, x1, y1, options)