got left mouse button dragwidget = = got left mouse button dragwidget = = got key presss got key pressp got key pressa got key pressm got key press got key pressgot key press got key pressgot return key press got up arrow key press got left mouse button clickwidget = = got double left mouse click widget = = for mouse-related eventscallbacks print the and coordinates of the mouse pointerin the event object passed in coordinates are usually measured in pixels from the upper-left corner ( , )but are relative to the widget being clicked here' what is printed for leftmiddleand double-left click notice that the middle-click callback dumps the entire argument--all of the event object' attributes (less internal names that begin with "__which includes the __doc__ stringand default operator overloading methods inherited from the implied object superclass in python xdifferent event types set different event attributesmost key presses put something in charfor instancec:\pp \gui\tourpython bind py got left mouse button clickwidget = = got middle mouse button clickwidget = = char =?delta = height =?keycode =?keysym =?keysym_num =?num = send_event =false serial = state = time = type = widget = width =? = x_root = = y_root = got left mouse button clickwidget = = got double left mouse click widget = = tkinter tourpart