gui.jobs.JobLine

gui.jobs.JobLine(stream, text)

One line a child process wrote.

Attributes

Name Type Description
stream str "stdout" or "stderr".
text str The line without its line break.

Examples

import sys

from spotregen.gui.jobs import SubprocessJob

job = SubprocessJob([sys.executable, "-c", "print('hello')"], cwd=".")
job.start()
job.wait()
print(job.poll()[0])
JobLine(stream='stdout', text='hello')