************************* wx.PyOnDemandOutputWindow ************************* Inheritance diagram for `wx.PyOnDemandOutputWindow`: | .. inheritance-diagram:: wx.PyOnDemandOutputWindow | Description =========== A class that can be used for redirecting Python's stdout and stderr streams. It will do nothing until something is wrriten to the stream at which point it will create a `wx.Frame `_ with a text area and write the text there. Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `CreateOutputWindow <#CreateOutputWindow>`_ * `OnCloseWindow <#OnCloseWindow>`_ * `RaiseWhenSeen <#RaiseWhenSeen>`_ * `SetParent <#SetParent>`_ * `close <#close>`_ * `flush <#flush>`_ * `write <#write>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(title='wxPython: stdout/stderr') Constructor. **Parameters:** * `title` (string) | **Returns:** `wx.PyOnDemandOutputWindow `_ -------- .. method:: CreateOutputWindow(st) Actually creates the window. **Parameters:** * `st` (string) -------- .. method:: OnCloseWindow(event) Handles the window closing event. **Parameters:** * `event` (`wx.CloseEvent <../Events/wx.CloseEvent.html>`_) -------- .. method:: RaiseWhenSeen(trigger) `trigger` is a string or list of strings that will cause the output window to be raised when that trigger text is written. **Parameters:** * `trigger` (PyObject) -------- .. method:: SetParent(parent) Set the window to be used as the popup `wx.Frame `_ parent. **Parameters:** * `parent` (`wx.Frame `_) -------- .. method:: close() `No docstrings available for this method.` -------- .. method:: flush() `No docstrings available for this method.` -------- .. method:: write(text) Create the output window if needed and write the string to it. If not called in the context of the gui thread then uses `wx.CallAfter <../wxFunctions.html#CallAfter>`_ to do the work there. **Parameters:** * `text` (string)