Python class for redirection of stderr to FreeCAD's output console window. More...
#include <PythonConsolePy.h>
Public Member Functions | |
Py::Object | flush (const Py::Tuple &) |
OutputStderr () | |
Py::Object | repr () |
Py::Object | write (const Py::Tuple &) |
~OutputStderr () | |
Static Public Member Functions | |
static void | init_type (void) |
Python class for redirection of stderr to FreeCAD's output console window.
This allows to report all Python errors to the output window which simplifies error tracking.
Definition at line 110 of file PythonConsolePy.h.
OutputStderr::OutputStderr | ( | ) |
Definition at line 233 of file PythonConsolePy.cpp.
OutputStderr::~OutputStderr | ( | ) |
Definition at line 237 of file PythonConsolePy.cpp.
Py::Object OutputStderr::flush | ( | const Py::Tuple & | ) |
Definition at line 275 of file PythonConsolePy.cpp.
References Sketcher::None.
Referenced by init_type().
void OutputStderr::init_type | ( | void | ) | [static] |
Definition at line 223 of file PythonConsolePy.cpp.
References Py::PythonExtension< OutputStderr >::add_varargs_method(), Py::PythonExtension< OutputStderr >::behaviors(), flush(), and write().
Referenced by Gui::Application::Application().
Py::Object OutputStderr::repr | ( | ) | [virtual] |
Reimplemented from Py::PythonExtensionBase.
Definition at line 241 of file PythonConsolePy.cpp.
Py::Object OutputStderr::write | ( | const Py::Tuple & | args | ) |
Definition at line 249 of file PythonConsolePy.cpp.
References Py::Exception::clear(), Base::Console(), Sketcher::None, and Py::Object::ptr().
Referenced by init_type().