python-cheatsheet
python-cheatsheet
root.mainloop()
Tkinter Graphics
# draws a rectangle between coords (left, top) and (right, bottom)
canvas.create_rectangle(left, top, right, bottom)
# draws an oval in the bounding box with coords (L, T) and (R, B)
canvas.create_oval(L, T, R, B)
# draws a line between the given points (x1, y1) and (x2, y2)
canvas.create_line(x1, y1, x2, y2)