Tools for running external processes in a QT4 GUI.
Classes
| BaseOutputHandler([loggername]) | Base class for output handlers |
| BaseToolController([loggername]) | Base class for controlling command line tools |
| Qt4Blinker([filename]) | |
| Qt4OutputHandler(loggername[, statusbar, ...]) | Qt4 Output Handler |
| Qt4ToolController([loggername, parent]) | Qt4 tool controller |
Qt4 Output Handler
Feed some data to the parser
It is processed insofar as it consists of complete elements; incomplete data is buffered until more data is fed or close() is called.
Handle percentage of a precess execution
| Parameters : |
|---|
Handle progress data
| Parameters : |
|---|
Reset the handler instance
Loses all unprocessed data. This is called implicitly at instantiation time.
Qt4 tool controller
| Signals : |
|---|
Perform finalization actions
This method is called when the controlled process terminates to perform finalization actions like:
If one just needs to perfor some additional finalization action it should be better to use a custom “finalize_run_hook” instead of overriging “finalize_run”.
Handle a error in process execution
Can be handle different types of errors:
Run an external tool in controlled way
The output of the child process is handled by the controller and, optionally, notifications can be achieved at sub-process termination.
Stop the execution of controlled subprocess
When this method is invoked the controller instance is always reset even if the controller is unable to stop the subprocess.
When possible the controller try to kill the subprocess in a polite way. If this fails it also tryes brute killing by default (force=True). This behaviour can be controlled using the force parameter.