event type quit description generated when the user closes the window keydown generated when the user presses down key has key attribute that tells which key was pressed also has mod attribute that tells if the shiftctrlaltor other keys were held down when this key was pressed keyup generated when the user releases key has key and mod attribute that are similar to those for keydown mousemotion generated whenever the mouse moves over the window has pos attribute that returns tuple (xyfor the coordinates of where the mouse is in the window the rel attribute also returns (xytuplebut it gives coordinates relative since the last mousemotion event for exampleif the mouse moves left by four pixels from ( to ( )then rel will be the tuple value (- the buttons attribute returns tuple of three integers the first integer in the tuple is for the left mouse buttonthe second integer for the middle mouse button (if there' middle mouse button)and the third integer is for the right mouse button these integers will be if they are not being pressed down when the mouse moved and if they are pressed down mousebuttondown generated when mouse button is pressed down in the window this event has pos attribute which is an (xytuple for the coordinates of where the mouse was when the button was pressed there is also button attribute which is an integer from to that tells which mouse button was pressedexplained in table - mousebuttonup generated when the mouse button is released this has the same attributes as mousebuttondown post questions to