Output Wrapper
@author: L. Calvo-Bartolome
- class src.graphical_user_interface.output_wrapper.OutputWrapper(parent, stdout=True)
Bases:
QObject
Module that overrides the “sys.stderr” and “sys.stdout” with a wrapper object that emits a signal whenever output is written. In order to account for other modules that need “sys.stdout” / “sys.stderr” (such as the logging module) use the wrapped versions wherever necessary, the instance of the OutputWrapper are created before the TaskManager object.
It has been created based on the analogous class provided by: https://stackoverflow.com/questions/19855288/duplicate-stdout-stderr-in-qtextedit-widget
- __getattr__(self, str) object
- __init__(parent, stdout=True)