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

Class SupervisedPopen

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
     PyQt4.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=-1, 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
 
on_error(self, object_id, descr, msg) source code

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Instance Variables
 
error(...)
the signal is emitted if error output was detected (id, decription, message)
source code
 
finished(...)
the signal is emitted on exit (id)
source code
Properties
  stdout
  stderr
  stdin

Inherited from object: __class__

Method Details

__init__(self, args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=-1, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0, object_id='', description='')
(Constructor)

source code 

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

Overrides: object.__init__

Property Details

stdout

Get Method:
unreachable.stdout(self)

stderr

Get Method:
unreachable.stderr(self)

stdin

Get Method:
unreachable.stdin(self)