def mode_start(self, **kwargs):

        # self.machine.events.post('attract_start')

        # register switch handlers for the start button press so we can
        # capture long presses

        # add these to the switch_handlers set so they'll be removed

        for switch in self.machine.switches.items_tagged(
                self.machine.config['game']['start_game_switch_tag']):
            self.switch_handlers.append(
                self.machine.switch_controller.add_switch_handler(
                    switch.name, self.start_button_pressed, 1))
            self.switch_handlers.append(
                self.machine.switch_controller.add_switch_handler(
                    switch.name, self.start_button_released, 0))

        if hasattr(self.machine, 'ball_devices'):
            self.machine.ball_controller.collect_balls()

        self.machine.events.post('enable_volume_keys')
        # move volume to its own mode?
Automatically called when the Attract game mode becomes active.
dataset/ETHPy150Open missionpinball/mpf/mpf/modes/attract/code/attract.py/Attract.mode_start