game.py
def run(self, name, args):
        """
        Runs all events that matches the given name
        """
        # iterate through all events
        for e in self.events:
            # if it's of the draw type
            if e['name'] == name:
                # call the given handler
                e['handler'](args)

        Runs all events that matches the given name
        
Runs all events that matches the given name
Runs all events that matches the given name
def run(self, name, args):
        for e in self.events:
            if e['name'] == name:
                e['handler'](args)
def run ( self , name , args ) : for e in self . events : if e [ 'name' ] == name : e [ 'handler' ] ( args )
Runs all events that matches the given name
Runs all events that matches the given name
"""
        Runs all events that matches the given name
        """ # iterate through all events # if it's of the draw type # call the given handler
self
name
args