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

Method runCurrentTab

Qt/Python/pqPythonScriptEditor.cxx:79–87  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

77
78//-----------------------------------------------------------------------------
79void pqPythonScriptEditor::runCurrentTab()
80{
81 if (!this->TabWidget->getCurrentTextArea()->isEmpty())
82 {
83 const QString& code{ this->TabWidget->getCurrentTextArea()->getTextEdit()->toPlainText() };
84 this->PythonManager->executeCode(code.toUtf8());
85 pqApplicationCore::instance()->render();
86 }
87}
88
89//-----------------------------------------------------------------------------
90bool pqPythonScriptEditor::eventFilter(QObject* watched, QEvent* event)

Callers

nothing calls this directly

Calls 5

instanceFunction · 0.85
getCurrentTextAreaMethod · 0.80
executeCodeMethod · 0.80
isEmptyMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected