Module Expr Str Import alias ImportFrom alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body If Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Contains the Attract class which is the attract mode in a pinball machine.

 N/A logging mpf.system.mode Mode N/A time Attract N/A Mode N/A N/A  Base mode for the active mode for a machine when a game is not in
    progress. Its main job is to watch for the start button to be pressed, to
    post the requests to start games, and to move the machine flow to the next
    mode if the request to start game comes back as approved.

     __init__ N/A N/A self machine config name path N/A N/A N/A N/A N/A N/A super Attract self __init__ machine config name path N/A N/A self start_button_pressed_time 0.0 N/A N/A self start_hold_time 0.0 N/A N/A self start_buttons_held N/A list N/A N/A self assets_waiting 0 N/A mode_start N/A N/A self N/A kwargs N/A N/A  Automatically called when the Attract game mode becomes active.

         N/A switch N/A N/A N/A N/A self machine switches items_tagged N/A N/A N/A N/A self machine config N/A game N/A start_game_switch_tag N/A N/A N/A N/A N/A self switch_handlers append N/A N/A N/A N/A self machine switch_controller add_switch_handler N/A switch name N/A self start_button_pressed 1 N/A N/A N/A N/A self switch_handlers append N/A N/A N/A N/A self machine switch_controller add_switch_handler N/A switch name N/A self start_button_released 0 N/A N/A hasattr N/A self machine ball_devices N/A N/A N/A N/A N/A N/A self machine ball_controller collect_balls N/A N/A N/A N/A N/A self machine events post enable_volume_keys N/A start_button_pressed N/A N/A self N/A N/A N/A  Called when the a switch tagged with *start* is activated. N/A N/A self start_button_pressed_time N/A N/A time time N/A start_button_released N/A N/A self N/A N/A N/A  Called when the a switch tagged with *start* is deactivated.

        Since this is the Attract mode, this method posts a boolean event
        called *request_to_start_game*. If that event comes back True, this
        method calls :meth:`result_of_start_request`.

         N/A N/A self start_hold_time N/A N/A N/A time time N/A self start_button_pressed_time N/A N/A self start_buttons_held N/A list N/A switch N/A N/A N/A N/A self machine switches items_tagged player N/A N/A N/A N/A N/A N/A self machine switch_controller is_active N/A switch name N/A N/A N/A N/A N/A self start_buttons_held append N/A switch name N/A N/A N/A N/A N/A self machine events post_boolean request_to_start_game callback N/A self result_of_start_request N/A result_of_start_request N/A N/A self ev_result N/A True N/A N/A Called after the *request_to_start_game* event is posted.

        If `result` is True, this method posts the event
        *game_start*. If False, nothing happens, as the game start
        request was denied by some handler.

        Args:
            ev_result : Bool result of the boolean event
                *request_to_start_game.* If any registered event handler did not
                want the game to start, this will be False. Otherwise it's True.

         N/A N/A ev_result False N/A N/A N/A N/A N/A self log debug Game start was denied N/A N/A N/A N/A N/A self log debug Let's start a game!! N/A N/A N/A N/A N/A self machine events post game_start buttons N/A self start_buttons_held hold_time N/A self start_hold_time N/A N/A