Add text edit to hold the output of the python script
This commit is contained in:
parent
b6fb6ca7d4
commit
cd67e8ddd7
3 changed files with 8 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ MainWindow::MainWindow(QWidget *parent):
|
|||
QMainWindow(parent),
|
||||
ui(new Ui::MainWindow),
|
||||
codeEditor(this),
|
||||
pythonOutput(this),
|
||||
currentFilePath(""),
|
||||
isFileModified(false)
|
||||
{
|
||||
|
|
@ -27,7 +28,10 @@ MainWindow::MainWindow(QWidget *parent):
|
|||
font.setStyleHint(QFont::TypeWriter);
|
||||
codeEditor.setFont(font);
|
||||
|
||||
ui->codeLayout->addWidget(&codeEditor);
|
||||
ui->codeLayout->addWidget(&codeEditor, 1);
|
||||
|
||||
pythonOutput.setReadOnly(true);
|
||||
ui->codeLayout->addWidget(&pythonOutput);
|
||||
|
||||
// Set up keyboard shortcuts
|
||||
ui->actionOpen->setShortcut(QKeySequence::Open);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue