Gui::PythonStderr Class Reference

Python class for redirection of stderr to FreeCAD's Python console window. More...

#include <PythonConsolePy.h>

Inheritance diagram for Gui::PythonStderr:
Py::PythonExtension< PythonStderr > Py::PythonExtensionBase

List of all members.

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)

Detailed Description

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.

See also:
PythonStdout
PythonConsole
Author:
Werner Mayer

Definition at line 65 of file PythonConsolePy.h.


Constructor & Destructor Documentation

PythonStderr::PythonStderr ( PythonConsole pc  ) 

Definition at line 112 of file PythonConsolePy.cpp.

PythonStderr::~PythonStderr (  ) 

Definition at line 117 of file PythonConsolePy.cpp.


Member Function Documentation

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]
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().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:01 2011 for FreeCAD by  doxygen 1.6.1