pastebin

Paste Search Dynamic
Recent pastes
mainloop
  1. from tkinter import *
  2.  
  3. root = Tk()
  4.  
  5. canvas = Canvas(root, width=400, height=400)
  6. canvas.pack()
  7.  
  8. # draw the face
  9. canvas.create_oval(50, 50, 350, 350, fill='yellow')
  10.  
  11. # draw the eyes
  12. canvas.create_oval(125, 125, 175, 175, fill='black')
  13. canvas.create_oval(225, 125, 275, 175, fill='black')
  14.  
  15. # draw the mouth
  16. canvas.create_arc(125, 225, 275, 275, extent=-180, width=5, fill='white')
  17.  
  18. root.mainloop()
Parsed in 0.010 seconds