class_docstr: Minimal mock with attributes for testing event handlers.
  
  This is not a gui object, but is used as an argument for callbacks
  that access attributes of the event passed. If a callback ignores
  the event, other than the fact that is happened, pass 'event'.
  
  Keyboard, mouse, window, and other sources generate Event instances.
  Event instances have the following attributes: serial (number of
  event), time (of event), type (of event as number), widget (in which
  event occurred), and x,y (position of mouse). There are other
  attributes for specific events, such as keycode for key events.
  tkinter.Event.__doc__ has more but is still not complete.
class_docstr_tok: ["Minimal","mock","with","attributes","for","testing","event","handlers",".","This","is","not","a","gui","object",",","but","is","used","as","an","argument","for","callbacks","that","access","attributes","of","the","event","passed",".","If","a","callback","ignores","the","event",",","other","than","the","fact","that","is","happened",",","pass","'event","'",".","Keyboard",",","mouse",",","window",",","and","other","sources","generate","Event","instances",".","Event","instances","have","the","following","attributes",":","serial","(","number","of","event",")",",","time","(","of","event",")",",","type","(","of","event","as","number",")",",","widget","(","in","which","event","occurred",")",",","and","x",",","y","(","position","of","mouse",")",".","There","are","other","attributes","for","specific","events",",","such","as","keycode","for","key","events",".","tkinter.Event.__doc__","has","more","but","is","still","not","complete","."]
docstr: Create event with attributes needed for test
docstr_tok: ["Create","event","with","attributes","needed","for","test"]
code: def __init__(self, **kwds):
      "Create event with attributes needed for test"
      self.__dict__.update(kwds)
  
imports: import re
  from _tkinter import TclError
label_desc: Use image node_id 1 to create a new Event object  with example: obj = Event()