Python Face Simple

from graphics import*


win = GraphWin('Face', 400, 400)

#we'll need about 5 circles and one oval to make a mouth 



head = Circle(Point(200, 200), 100)

head.setFill('purple')

head.draw(win)


le= Circle(Point(150, 200), 10)

le.setFill('yellow')

le.draw(win)



re = Circle(Point(250,200), 10)

re.setFill('yellow')

re.draw(win)



mouth = Oval(Point(235,270), Point(170,250)) 

mouth.setFill('pink')

mouth.draw(win)


_=win.getMouse()

win.close()


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )