Package node_manager_fkie :: Module supervised_popen :: Class SupervisedPopen
[frames] | no frames]

Class SupervisedPopen

source code

python_qt_binding.QtCore.QObject --+
                                   |
                                  SupervisedPopen

The class overrides the subprocess.Popen and waits in a thread for its finish. If an error is printed out, it will be shown in a message dialog.

Instance Methods
 
__init__(self, args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=subprocess.PIPE, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0, object_id='', description='')
For arguments see https://docs.python.org/2/library/subprocess.html Additional arguments: :param object_id: the identification string of this object and title of the error message dialog :type object_id: str :param description: the description string used as addiotional information in dialog if an error was occured :type description: str
source code
 
stdout(self) source code
 
stderr(self) source code
 
stdin(self) source code
 
on_error(self, object_id, descr, msg) source code
Instance Variables
  error = Signal(str, str, str)
the signal is emitted if error output was detected (id, decription, message)
  finished = Signal(str)
the signal is emitted on exit (id)
Method Details

stdout(self)

source code 
Decorators:
  • @property

stderr(self)

source code 
Decorators:
  • @property

stdin(self)

source code 
Decorators:
  • @property