HAL
python_console_widget.cpp
Go to the documentation of this file.
2 
4 
5 #include <QVBoxLayout>
6 
7 namespace hal
8 {
9  PythonConsoleWidget::PythonConsoleWidget(QWidget* parent) : ContentWidget("Python Console", parent)
10  {
11  mConsole = new PythonConsole(this);
12  mContentLayout->addWidget(mConsole);
13  PythonConsoleAbortThread* pcat = mConsole->abortThreadWidget();
15  pcat->hide();
16  }
17 
19  {
20  Q_UNUSED(Toolbar);
21  }
22 
24  {
25  QList<QShortcut*> list;
26  return list;
27  }
28 }
Abstract class for Widgets within HAL's ContentArea.
QVBoxLayout * mContentLayout
An interactable python console.
PythonConsoleAbortThread * abortThreadWidget()
PythonConsoleWidget(QWidget *parent=nullptr)
virtual QList< QShortcut * > createShortcuts() override
virtual void setupToolbar(Toolbar *Toolbar) override
Toolbar for all ContentFrames and ContentWidgets.
Definition: toolbar.h:39
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void hide()