############################################### # File: Xiang/line1.py # Change coordinates on Center(0,0) # New (0,0) is now down left - like in Math from graphics import * def main(): win = GraphWin( "The coordinates", 500, 500 ) win.setCoords( 0, 0, 400, 400 ) # change Center of axes Ox = Line(Point(20,20),Point(20,80)) Ox.draw( win ) Oy = Line(Point(20,20),Point(40,20)) Oy.draw( win ) message = Text( Point(100,20), "Click anywhere to stop!" ) message.draw( win ) win.getMouse() win.close() main()