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

Method prompt

Qt/Python/pqPythonShell.cxx:316–331  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

314
315//-----------------------------------------------------------------------------
316bool pqPythonShell::prompt(const QString& indent)
317{
318 if (!this->Prompted)
319 {
320 this->Prompted = true;
321
322 Ui::PythonShell& ui = this->Internals->Ui;
323 QTextCharFormat format = ui.consoleWidget->getFormat();
324 format.setForeground(QApplication::palette().windowText().color());
325 ui.consoleWidget->setFormat(format);
326 ui.consoleWidget->prompt(this->Prompt);
327 ui.consoleWidget->printCommand(indent);
328 return true;
329 }
330 return false;
331}
332
333//-----------------------------------------------------------------------------
334void pqPythonShell::printMessage(const QString& text)

Callers 7

pqPythonShellMethod · 0.95
printMessageMethod · 0.95
clearMethod · 0.95
executeScriptMethod · 0.95
pushScriptMethod · 0.95
initializeInterpreterMethod · 0.45
promptForInputMethod · 0.45

Calls 4

getFormatMethod · 0.80
printCommandMethod · 0.80
colorMethod · 0.45
setFormatMethod · 0.45

Tested by

no test coverage detected