diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-28 17:56:44 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-28 17:57:26 +0200 |
commit | 1676b285ae726eb858d4d7ed089496133ce3de4b (patch) | |
tree | b7c2a9a59c2a9a0377d266567e545f5a1c23ae58 /gui/pythontab.h | |
parent | 2037fff7426e252a8692b971f88689c1dd8c03e8 (diff) | |
download | nextpnr-1676b285ae726eb858d4d7ed089496133ce3de4b.tar.gz nextpnr-1676b285ae726eb858d4d7ed089496133ce3de4b.tar.bz2 nextpnr-1676b285ae726eb858d4d7ed089496133ce3de4b.zip |
adapted python-console for easier use
Diffstat (limited to 'gui/pythontab.h')
-rw-r--r-- | gui/pythontab.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gui/pythontab.h b/gui/pythontab.h index c742b42f..4b22e6a9 100644 --- a/gui/pythontab.h +++ b/gui/pythontab.h @@ -27,6 +27,7 @@ #include <QPlainTextEdit>
#include "line_editor.h"
#include "nextpnr.h"
+#include "pyconsole.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -38,18 +39,14 @@ class PythonTab : public QWidget explicit PythonTab(QWidget *parent = 0);
~PythonTab();
- private:
- void print(std::string line);
- int executePython(std::string &command);
private Q_SLOTS:
- void editLineReturnPressed(QString text);
void showContextMenu(const QPoint &pt);
void clearBuffer();
public Q_SLOTS:
void newContext(Context *ctx);
+
private:
- QPlainTextEdit *plainTextEdit;
- LineEditor *lineEdit;
+ PythonConsole *console;
QMenu *contextMenu;
bool initialized;
};
|