-----------------------------------------------------------------------------
| 314 | |
| 315 | //----------------------------------------------------------------------------- |
| 316 | bool 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 | //----------------------------------------------------------------------------- |
| 334 | void pqPythonShell::printMessage(const QString& text) |
no test coverage detected