[Tutor] drawing a face
andrade1@umbc.edu
andrade1 at umbc.edu
Fri Sep 30 18:18:54 CEST 2005
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()
More information about the Tutor
mailing list