Python class for redirection of stderr to FreeCAD's Python console window. More...
#include <PythonConsolePy.h>
Public Member Functions | |
Py::Object | flush (const Py::Tuple &) |
PythonStderr (PythonConsole *pc) | |
Py::Object | repr () |
Py::Object | write (const Py::Tuple &) |
~PythonStderr () | |
Static Public Member Functions | |
static void | init_type (void) |
Python class for redirection of stderr to FreeCAD's Python console window.
This allows to show all Python messages in the same window where the commands are performed.
Definition at line 65 of file PythonConsolePy.h.
PythonStderr::PythonStderr | ( | PythonConsole * | pc | ) |
Definition at line 112 of file PythonConsolePy.cpp.
PythonStderr::~PythonStderr | ( | ) |
Definition at line 117 of file PythonConsolePy.cpp.
Py::Object PythonStderr::flush | ( | const Py::Tuple & | ) |
Definition at line 157 of file PythonConsolePy.cpp.
References Sketcher::None.
Referenced by init_type().
void PythonStderr::init_type | ( | void | ) | [static] |
Definition at line 102 of file PythonConsolePy.cpp.
References Py::PythonExtension< PythonStderr >::add_varargs_method(), Py::PythonExtension< PythonStderr >::behaviors(), flush(), and write().
Referenced by Gui::Application::Application().
Py::Object PythonStderr::repr | ( | ) | [virtual] |
Reimplemented from Py::PythonExtensionBase.
Definition at line 121 of file PythonConsolePy.cpp.
Py::Object PythonStderr::write | ( | const Py::Tuple & | args | ) |
Definition at line 129 of file PythonConsolePy.cpp.
References Py::Exception::clear(), Sketcher::None, Py::Object::ptr(), and Py::String::size().
Referenced by init_type().