ctkPythonShell Class Reference

#include <Libs/Scripting/Python/Widgets/ctkPythonShell.h>

Collaboration diagram for ctkPythonShell:
Collaboration graph

List of all members.

Public Types

typedef QWidget Superclass

Public Slots

void clear ()
void executeScript (const QString &)


void executing (bool)

Public Member Functions

 ctkPythonShell (ctkAbstractPythonManager *pythonManager, QWidget *_parent=0)
QStringList getPythonAttributes (const QString &pythonVariableName)
 Calls MakeCurrent in the internal vtkPVPythonInteractiveInterpretor instance.
void printMessage (const QString &)
 Prints some text on the shell.
 ~ctkPythonShell ()

Protected Slots

void onExecuteCommand (const QString &)
void printStderr (const QString &)
void printStdout (const QString &)

Detailed Description

Definition at line 71 of file ctkPythonShell.h.

Member Typedef Documentation

typedef QWidget ctkPythonShell::Superclass

Definition at line 77 of file ctkPythonShell.h.

Constructor & Destructor Documentation

ctkPythonShell::ctkPythonShell ( ctkAbstractPythonManager pythonManager,
QWidget *  _parent = 0 

Definition at line 246 of file ctkPythonShell.cpp.

ctkPythonShell::~ctkPythonShell (  ) 

Definition at line 284 of file ctkPythonShell.cpp.

Member Function Documentation

void ctkPythonShell::clear (  )  [slot]

Definition at line 290 of file ctkPythonShell.cpp.

void ctkPythonShell::executeScript ( const QString &  script  )  [slot]

Definition at line 309 of file ctkPythonShell.cpp.

void ctkPythonShell::executing ( bool   )  [signal]
QStringList ctkPythonShell::getPythonAttributes ( const QString &  pythonVariableName  ) 

Calls MakeCurrent in the internal vtkPVPythonInteractiveInterpretor instance.

Calls ReleaseControl in the internal vtkPVPythonInteractiveInterpretor instance Given a python variable name, lookup its attributes and return them in a string list.

Definition at line 322 of file ctkPythonShell.cpp.

void ctkPythonShell::onExecuteCommand ( const QString &  Command  )  [protected, slot]

Definition at line 419 of file ctkPythonShell.cpp.

void ctkPythonShell::printMessage ( const QString &  text  ) 

Prints some text on the shell.

Initializes the interpretor. If an interpretor is already setup (by an earlier call to this method), it will be destroyed.

Definition at line 397 of file ctkPythonShell.cpp.

void ctkPythonShell::printStderr ( const QString &  text  )  [protected, slot]

Definition at line 407 of file ctkPythonShell.cpp.

void ctkPythonShell::printStdout ( const QString &  text  )  [protected, slot]

Definition at line 385 of file ctkPythonShell.cpp.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1