Gui::PythonStdout Class Reference

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

#include <PythonConsolePy.h>

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

List of all members.

Public Member Functions

Py::Object flush (const Py::Tuple &)
 PythonStdout (PythonConsole *pc)
Py::Object repr ()
Py::Object write (const Py::Tuple &)
 ~PythonStdout ()

Static Public Member Functions

static void init_type (void)

Detailed Description

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

This allows to show all Python messages in the same window where the commands are performed.

See also:
PythonStderr
PythonConsole
Author:
Werner Mayer

Definition at line 41 of file PythonConsolePy.h.


Constructor & Destructor Documentation

PythonStdout::PythonStdout ( PythonConsole pc  ) 

Definition at line 50 of file PythonConsolePy.cpp.

PythonStdout::~PythonStdout (  ) 

Definition at line 55 of file PythonConsolePy.cpp.


Member Function Documentation

Py::Object PythonStdout::flush ( const Py::Tuple  ) 

Definition at line 95 of file PythonConsolePy.cpp.

References Sketcher::None.

Referenced by init_type().

void PythonStdout::init_type ( void   )  [static]
Py::Object PythonStdout::repr (  )  [virtual]

Reimplemented from Py::PythonExtensionBase.

Definition at line 59 of file PythonConsolePy.cpp.

Py::Object PythonStdout::write ( const Py::Tuple args  ) 

Definition at line 67 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:02 2011 for FreeCAD by  doxygen 1.6.1