#!/usr/local/bin/python ## # Lines # ----- # The program creates three points using the pt function and # then draws lines between them. # # The lines are drawn using the default colour which is Black # and the defaut line width which is one pixel. # # Drawing will automatically create and show a window if there # is no currently visible window. ## from graphapp import * def main(): A = pt(10,10) B = pt(10,40) C = pt(50,40) drawline(A, B) drawline(B, C) drawline(C, A) main()