(self, event_data, level=None)
Tracks parent states to be entered when the states is entered itself. This should not
            be triggered by the user but will be handled by the hierarchical machine.
        Args:
            event_data (EventData): Event related data.
            level (int): The level of the currently entered parent.
Tracks parent states to be entered when the states is entered itself. This should not
            be triggered by the user but will be handled by the hierarchical machine.
        Args:
            event_data (EventData): Event related data.
            level (int): The level of the currently entered parent.
Tracks parent states to be entered when the states is entered itself . This should not be triggered by the user but will be handled by the hierarchical machine . Args : event_data ( EventData ) : Event related data . level ( int ) : The level of the currently entered parent .
def enter_nested(self, event_data, level=None):
        """ Tracks parent states to be entered when the states is entered itself. This should not
            be triggered by the user but will be handled by the hierarchical machine.
        Args:
            event_data (EventData): Event related data.
            level (int): The level of the currently entered parent.
        """
        if level is not None and level <= self.level:
            if level != self.level:
                self.parent.enter_nested(event_data, level)
            self.enter(event_data)
def enter_nested ( self , event_data , level = None ) : if level is not None and level <= self . level : if level != self . level : self . parent . enter_nested ( event_data , level ) self . enter ( event_data )