[Tutor] drawing a face

Harper, Gina gharper at medplus.com
Fri Sep 30 18:22:35 CEST 2005


Looks like you misspelled circle...

-----Original Message-----
From: andrade1 at umbc.edu [mailto:andrade1 at umbc.edu] 
Sent: Friday, September 30, 2005 12:19 PM
To: tutor at python.org
Subject: [Tutor] drawing a face


Hello

I am trying to draw a basic face with eyes, nose, and a mouth. I keep
receiving the following error message:

>>>
Traceback (most recent call last):
  File "C:\Documents and Settings\Michele\Desktop\face", line 26, in ?
    main()
  File "C:\Documents and Settings\Michele\Desktop\face", line 10, in
main
    leftEye = Cirlce(Point(285,210), 50)
NameError: global name 'Cirlce' is not defined

also I know i want an oval for the month but I only need half of one how
would i just get half of the oval?






from graphics import*

def main():
 win = GraphWin()
 shape = Circle(Point(300,200), 40)
 shape.setOutline("black")
 shape.setFill("orange")
 shape.draw(win)

 leftEye = Cirlce(Point(285,210), 50)
 leftEye.setFill("yellow")
 leftEye.setOutline("orange")
 rightEye = leftEye.clone()
 leftEye.draw(win)
 rightEye.draw(win)

        sidenose = Line(245, 265)
        botnose = Line(245,0)
        sidenose.draw(win)
        botnose.draw(win)

 win.getMouse()
 win.close()



main()


_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list