I downloaded the graphics.py file and have it saved on my computer but everytime I run the following program I seem to keep getting an error.
from graphics import*
def main():
win=GraphWin()
shape = Circle(Point(50,50), 20)
shape.setOutline("red")
shape.setFill("red")
shape.draw(win)
for i in range(10):
p = win.getMouse()
c = shape.getCenter()
dx = p.getX() - c.getX()
dy = p.getY -c.getY()
shape.move(dx,dy)
win.close()
main()
Traceback (most recent call last):
File "C:/Python24/circle", line 1, in -toplevel-
from graphics import*
ImportError: No module named graphics
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
