MCPcopy Create free account
hub / github.com/Kitware/ParaView / reset

Method reset

Qt/Python/pqPythonShell.cxx:159–166  ·  view source on GitHub ↗

* Resets the interpreter. Unlike `initializeInterpreter`, this will have no * effect if the interpreter hasn't been initialized yet. */

Source from the content-addressed store, hash-verified

157 * effect if the interpreter hasn't been initialized yet.
158 */
159 void reset()
160 {
161 if (this->isInterpreterInitialized())
162 {
163 this->Parent->printString(QString("\n%1 ...\n").arg(tr("resetting")), pqPythonShell::ERROR);
164 this->initializeInterpreter();
165 }
166 }
167
168 vtkPythonInteractiveInterpreter* interpreter() const { return this->Interpreter; }
169

Callers

nothing calls this directly

Calls 5

initializeInterpreterMethod · 0.95
trFunction · 0.85
QStringClass · 0.50
printStringMethod · 0.45

Tested by

no test coverage detected