"""Event object is used to simplify connecting a
keypress or set of keypresses to a given function.
"""
class Event(object):

    """Setup the event into the controller
    @param controller: the parent controller
    @param key: tuple of pygame.key presses
    @param action: a function to call on when the key combination is pressed
    """
    def __init__(self, controller, action=None, keys=()):
        self.keys = keys
        self.action = action
        controller.add_event(self)

7e3cc5571437a70cfa041487e70911bcd10b71a2
<mask token>

<mask token>


class Event(object):
    <mask token>
    <mask token>

<mask token>


class Event(object):
    <mask token>

    def __init__(self, controller, action=None, keys=()):
        self.keys = keys
        self.action = action
        controller.add_event(self)

<mask token>


class Event(object):
    """Setup the event into the controller
    @param controller: the parent controller
    @param key: tuple of pygame.key presses
    @param action: a function to call on when the key combination is pressed
    """

    def __init__(self, controller, action=None, keys=()):
        self.keys = keys
        self.action = action
        controller.add_event(self)

"""Event object is used to simplify connecting a
keypress or set of keypresses to a given function.
"""
class Event(object):

    """Setup the event into the controller
    @param controller: the parent controller
    @param key: tuple of pygame.key presses
    @param action: a function to call on when the key combination is pressed
    """
    def __init__(self, controller, action=None, keys=()):
        self.keys = keys
        self.action = action
        controller.add_event(self)
