objects and graphics to be redone to accommodate the new scaling factors in the larger window obviouslythe second version of our program is much easier to develop and understand when you are doing graphics programminggive some consideration to choosing coordinate system that will make your task as simple as possible interactive graphics graphical interfaces can be used for input as well as output in gui environmentusers typically interact with their applications by clicking on buttonschoosing items from menusand typing information into on-screen text boxes these applications use technique called event-driven programming basicallythe program draws set of interface elements (often called widgetson the screenand then waits for the user to do something when the user moves the mouseclicks button or types key on the keyboardthis generates an event basicallyan event is an object that encapsulates data about what just happened the event object is then sent off to an appropriate part of the program to be processed for examplea click on button might produce button event this event would be passed to the button handling codewhich would then perform the appropriate action corresponding to that button event-driven programming can be tricky for novice programmerssince it' hard to figure out "who' in chargeat any given moment the graphics module hides the underlying event-handling mechanisms and provides two simple ways of getting user input in graphwin getting mouse clicks we can get graphical information from the user via the getmouse method of the graphwin class when getmouse is invoked on graphwinthe program pauses and waits for the user to click the mouse somewhere in the graphics window the spot where the user clicks is returned to the program as point here is bit of code that reports the coordinates of ten successive mouse clicksclick py from graphics import def main()win graphwin("click me!"for in range( ) win getmouse(print("you clicked at:" getx() gety()main(the value returned by getmouse(is ready-made point we can use it like any other point using accessors such as getx and gety or other methods such as draw and move