PythonScript Xojo Plugin |

# PythonScript.SetConsoleOutput Method

Use this method to register a redirect of console output from Python scripts.

shared SetConsoleOutput(
output as PythonScriptConsoleOutput)

#### Parameters

output
  A instance of PythonScriptConsole class or subclass of PythonScriptConsole. Usually you will want to pass subclass of the PythonScriptConsole class.

#### Remarks

A instance of PythonScriptConsole class or subclass of PythonScriptConsole. Usually you will want to pass subclass of the PythonScriptConsole class.
If SetConsoleOutput is called more than once then its the last call that is the only one that has effect.

#### See Also

PythonScript Class