4 #ifndef pqPythonShell_h 5 #define pqPythonShell_h 8 #include <QScopedPointer> 36 typedef QWidget Superclass;
39 pqPythonShell(QWidget* parent =
nullptr, Qt::WindowFlags flags = Qt::WindowFlags{});
47 void* consoleLocals();
53 void setFontSize(
int fontSize);
67 void printMessage(
const QString&);
79 void executeScript(
const QString&);
91 bool isExecuting()
const;
98 void printString(
const QString&,
PrintMode mode = STATUS);
107 static void setPreamble(
const QStringList& statements);
108 static const QStringList& preamble();
122 void executing(
bool starting);
125 void pushScript(
const QString&);
133 static const char*
PS1() {
return ">>> "; }
134 static const char*
PS2() {
return "... "; }
140 bool prompt(
const QString& indent = QString());
142 void HandleInterpreterEvents(
vtkObject* caller,
unsigned long eventid,
void* calldata);
149 friend class pqInternals;
150 QScopedPointer<pqInternals> Internals;
153 #endif // !pqPythonShell_h
Widget for a Python shell.
static const char * PS2()
static const char * PS1()
pqConsoleWidget * ConsoleWidget
static QStringList Preamble