@staticmethod
def event_handler(rect, events, handler, oplist):
    return {'type': 'evtHnd', 'rect': rect, 'events': events, 'handler': handler, 'oplist': oplist}
@staticmethod
def event_handler(rect, events, handler, oplist):
    return {'type': 'evtHnd', 'rect': rect, 'events': events, 'handler': handler, 'oplist': oplist}