(self, state_name, callback)
Helper function to add callbacks to states in case a custom state separator is used.
        Args:
            state_name (str): Name of the state
            callback (str or callable): Function to be called. Strings will be resolved to model functions.
Helper function to add callbacks to states in case a custom state separator is used.
        Args:
            state_name (str): Name of the state
            callback (str or callable): Function to be called. Strings will be resolved to model functions.
Helper function to add callbacks to states in case a custom state separator is used . Args : state_name ( str ) : Name of the state callback ( str or callable ) : Function to be called . Strings will be resolved to model functions .
def on_enter(self, state_name, callback):
        """ Helper function to add callbacks to states in case a custom state separator is used.
        Args:
            state_name (str): Name of the state
            callback (str or callable): Function to be called. Strings will be resolved to model functions.
        """
        self.get_state(state_name).add_callback('enter', callback)
def on_enter ( self , state_name , callback ) : self . get_state ( state_name ) . add_callback ( 'enter' , callback )