[Tutor] lonely snowman
andrade1@umbc.edu
andrade1 at umbc.edu
Sat Oct 1 03:29:12 CEST 2005
Hello
I have a snowman who would like a nose. I have tried the following to make
a triangle and all I get is a little green line. would anyone have any
suggestions as to why?
from graphics import *
def main():
win = GraphWin("Triangle")
triangle = Polygon(Point(4,8), Point(2,10), Point(6,3))
triangle.setFill("purple")
triangle.setOutline("green")
triangle.draw(win)
win.getMouse()
win.close()
main()
More information about the Tutor
mailing list