Advertisement
humpda

Tkinter Drawing

Feb 24th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. from tkinter import *
  2. root = Tk()
  3. c = Canvas(root, width=400, height=400)
  4. c.configure(bg='dark blue', highlightthickness=0)
  5. c.body_color = 'SkyBlue1'
  6. body = c.create_oval (35,20,365,350, outline=c.body_color, fill=c.body_color)
  7. eye_left = c.create_oval (130, 110, 160, 170, outline='black', fill='white')
  8. pupil = c.create_oval (140, 145, 150, 155, outline='black', fill='black')
  9. spot = c.create_line (0, 80, 400, 80)
  10. c.create_rectangle(230, 10, 290, 60,outline="#f11", fill="#1f1", width=2)
  11. c.pack()
  12. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement