Python class for redirection of stdout to FreeCAD's output console window. More...
#include <PythonConsolePy.h>
Public Member Functions | |
Py::Object | flush (const Py::Tuple &) |
OutputStdout () | |
Py::Object | repr () |
Py::Object | write (const Py::Tuple &) |
~OutputStdout () | |
Static Public Member Functions | |
static void | init_type (void) |
Python class for redirection of stdout to FreeCAD's output console window.
This allows to report all Python output to the output window which simplifies debugging scripts.
Definition at line 89 of file PythonConsolePy.h.
OutputStdout::OutputStdout | ( | ) |
Definition at line 174 of file PythonConsolePy.cpp.
OutputStdout::~OutputStdout | ( | ) |
Definition at line 178 of file PythonConsolePy.cpp.
Py::Object OutputStdout::flush | ( | const Py::Tuple & | ) |
Definition at line 216 of file PythonConsolePy.cpp.
References Sketcher::None.
Referenced by init_type().
void OutputStdout::init_type | ( | void | ) | [static] |
Definition at line 164 of file PythonConsolePy.cpp.
References Py::PythonExtension< OutputStdout >::add_varargs_method(), Py::PythonExtension< OutputStdout >::behaviors(), flush(), and write().
Referenced by Gui::Application::Application().
Py::Object OutputStdout::repr | ( | ) | [virtual] |
Reimplemented from Py::PythonExtensionBase.
Definition at line 182 of file PythonConsolePy.cpp.
Py::Object OutputStdout::write | ( | const Py::Tuple & | args | ) |
Definition at line 190 of file PythonConsolePy.cpp.
References Py::Exception::clear(), Base::Console(), Sketcher::None, and Py::Object::ptr().
Referenced by init_type().