[Tutor] help with running graphics program
Goofball223@wmconnect.com
Goofball223 at wmconnect.com
Thu Sep 29 01:39:37 CEST 2005
Hello
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050928/8299fc2e/attachment.htm
More information about the Tutor
mailing list