Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def PythonCard-0.8.1::component::Scriptable::execute (   self,
  name,
  event 
)

RDS - 2004-05-02

Find the handler that matches handlerName and
execute it.

Should we throw an exception if the handler name
is not found?  

The caller would be responsible for reporting 
a missing handler as an error.

Reimplemented from PythonCard-0.8.1::component::IScriptable.

Definition at line 102 of file component.py.

00102                                      :
        """
        RDS - 2004-05-02
        
        Find the handler that matches handlerName and
        execute it.
        
        Should we throw an exception if the handler name
        is not found?  
        
        The caller would be responsible for reporting 
        a missing handler as an error.
        """
        handler = self._findHandler( name )
        
        if handler is not None :
            handler.execute( event )
            EventLog.getInstance().log( event, handler.getSourceName(), True )
        else :
            self._parent.execute( name, event )
        
        
class AttributeSpec :


Generated by  Doxygen 1.6.0   Back to index