32 #ifndef _pqPythonShell_h 33 #define _pqPythonShell_h 35 #include "pqPythonModule.h" 41 class vtkPythonInteractiveInterpreter;
54 typedef QWidget Superclass;
62 void* consoleLocals();
73 void printMessage(
const QString&);
81 void executeScript(
const QString&);
89 {
return this->Executing; }
94 void printString(
const QString&,
PrintMode mode=STATUS);
101 static void setPreamble(
const QStringList& statements);
107 void executing(
bool starting);
110 void pushScript(
const QString&);
119 static const char*
PS1() {
return ">>> "; }
120 static const char*
PS2() {
return "... "; }
124 void setupInterpreter();
129 bool prompt(
const QString& indent=QString());
131 void HandleInterpreterEvents(
132 vtkObject* caller,
unsigned long eventid,
void* calldata);
141 #endif // !_pqPythonShell_h pqPythonShell is a QWidget subclass that provides an interactive Python shell.
void setExecuting(bool val)
bool isExecuting() const
Returns true is the shell is currently executing a script/command.
static const char * PS2()
static const char * PS1()
pqPythonManager is a class to facilitate the use of a python interpreter by various paraview GUI comp...
vtkPythonInteractiveInterpreter * Interpreter
pqConsoleWidget * ConsoleWidget
static QStringList Preamble