32 #ifndef _pqPythonShell_h 33 #define _pqPythonShell_h 36 #include <QScopedPointer> 64 typedef QWidget Superclass;
67 pqPythonShell(QWidget* parent =
nullptr, Qt::WindowFlags flags = Qt::WindowFlags{});
75 void* consoleLocals();
81 void setFontSize(
int fontSize);
95 void printMessage(
const QString&);
107 void executeScript(
const QString&);
119 bool isExecuting()
const;
126 void printString(
const QString&,
PrintMode mode = STATUS);
135 static void setPreamble(
const QStringList& statements);
136 static const QStringList& preamble();
150 void executing(
bool starting);
153 void pushScript(
const QString&);
161 static const char*
PS1() {
return ">>> "; }
162 static const char*
PS2() {
return "... "; }
168 bool prompt(
const QString& indent = QString());
170 void HandleInterpreterEvents(
vtkObject* caller,
unsigned long eventid,
void* calldata);
177 friend class pqInternals;
178 QScopedPointer<pqInternals> Internals;
181 #endif // !_pqPythonShell_h
Widget for a Python shell.
static const char * PS2()
static const char * PS1()
pqConsoleWidget * ConsoleWidget
static QStringList Preamble