[Tutor] lonely snowman

Kent Johnson kent37 at tds.net
Sat Oct 1 03:50:30 CEST 2005


andrade1 at umbc.edu wrote:
> 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))

Try making the triangle bigger and maybe you will see what is happening...
  triangle = Polygon(Point(40,80), ...

Kent

>     triangle.setFill("purple")
>     triangle.setOutline("green")
>     triangle.draw(win)
> 
> 
>     win.getMouse()
>     win.close()
> 
> main()
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 



More information about the Tutor mailing list