# ChapterGraphics/mouseCoord.py # Display coordinates of the mouse where you click 10 times from graphics import * def main(): win = GraphWin("Click HELLO", 400, 400) for i in range(5): pt = win.getMouse() #finds point where clicked s = str(int(pt.getX()))+ ','+ str(int(pt.getY())) myt = Text(pt, s).draw(win) main()