| Class implementing the script action.    This class is subclassed from QAction to have the possibility to
    attach it to menus and toolbars.     Signals
        activatedsignal emitted when this script action is activated     Exceptions
        CompilationErrorraised, if script compilation fails        ExecutionErrorraised, if script execution failed 
        
            | Methods |  |  
        | __compile __init__
 activated
 addTo
 execute
 remove
 removeFrom
 
 |  
            |  | __compile |  
        | 
__compile ( self,  code )
 Private method to compile the code string.        Arguments
            codestring containing the code (string)         Exceptions
            CompilationErrorraised, if compilation fails         Returns            the compiled bytecode as a string |  
            |  | __init__ |  
        | 
__init__ (
        self,
        code,
        *args,
        )
Constructor        Arguments
            codethe script code (string or QString)            *argsarguments passed on to QAction |  
            |  | activated |  
        | 
activated ( self )
 Private method connected to the QAction activated signal. |  
            |  | addTo |  
        | 
addTo ( self,  widget )
 Public method to add this action to a widget.        Overloaded from QAction in order to keep a list of widgets
        we are added to.         Arguments
            widgetwidget to add this action to (QWidget) |  
            |  | execute |  
        | 
execute (
        self,
        out,
        err,
        globals,
        locals,
        )
Public method to execute this script.        Arguments
            outredirect for sys.stdout            errredirect for sys.stderr            globalsdictionary containing global scope            localsdictionary containing local scope |  
            |  | remove |  
        | 
remove ( self )
 Public method to remove this action. |  
            |  | removeFrom |  
        | 
removeFrom ( self,  widget )
 Public method to remove this action from a widget.        Overloaded from QAction in order to keep a list of widgets
        we are added to.         Arguments
            widgetwidget to remove this action from (QWidget) |  |