# ChapterGraphics/line0.py # draws two lines # from graphics import * def main(): win = GraphWin( "Win is 300 x 400",300,400) msg = Text( Point(150,275), "See two lines!" ) msg.draw( win ) p1 = Point(10,50) p2 = Point(10,150) line1 = Line( p1, p2 ) line1.setWidth(4) line1.draw( win ) line2 = Line(Point(30,40),Point(30,250)) line2.setOutline('red') line2.draw( win ) main()