Me
2010-12-23 17:20:09 UTC
Traceback (most recent call last):
File "C:\house win", line 2
from graphics import *
ImportError: No module named graphics
I am kind of new to programing but what annoys me is the face that it will work on my school computers just not on my own???
I checked every little thing but that error code just pops up. Would Love help no sarcastic answers please. Here is my syntax
### Open a graphics window
from graphics import *
def main():
win = GraphWin()
### draw a black Rectangle at point (90, 130), Point (130,170)
rect = Rectangle(Point(80, 140), Point(120, 180))
rect.setFill("Red")
rect.draw(win)
### draw a line segment using a line object
line = Line(Point(0, 181) , Point(240,181))
line.setFill("green")
line.draw(win)
grass = Rectangle(Point(0, 181), Point(240, 240))
grass.setFill("green")
grass.draw(win)
door = Rectangle(Point(95, 165), Point (105,180 ))
door.setFill("black")
door.draw(win)
skyone = Rectangle(Point(0, 0), Point(240, 139))
skyone.setFill("light blue")
skyone.draw(win)
win.getMouse()
win.close()
Trying to make a house please help need it done by the new year AAAAAAAAARRRRRRRRRRRRG please tell me what python is doing and why it is giving me that annoying syntax error Thanks for the help