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