def __init__(self, process): super(ProcessResult, self).__init__() self.process = process self.stdout_builder = proc.async_stdout_builder(process) # start redirect stderr in initialization, before render() gets called proc.async_stream_process_stderr(self.process, self.renderProcessStdErr)