def __init__(self, id=None, config=None, lastrun=-1):
"""
Initialize a new B3 instance.
:param id: the B3 instance id :type int:
:param config: the B3 configuration file path :type MainConfig: || :type str:
:param lastrun: the B3 last run timestamp :type int:
"""
QProcess.__init__(self)
self.id = id
self.config = config
self.lastrun = lastrun
# create the console window (hidden by default)
self.stdout = STDOutDialog(process=self)
self.setProcessChannelMode(QProcess.MergedChannels)
self.readyReadStandardOutput.connect(self.stdout.read_stdout)
self.readyReadStandardError.connect(self.stdout.read_stdout)
# configure signal handlers
self.error.connect(self.process_errored)
self.finished.connect(self.process_finished)
self.started.connect(self.process_started)
############################################### PROPERTIES #########################################################
评论列表
文章目录