def listen(eventType):
    """ Decorates a method as listening to events of a particular type. 
    """
    def _decoration(fcn):
        fcn.listen = True
        fcn.eventType = eventType
        return fcn
    return _decoration