diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-14 14:06:05 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-14 14:06:05 +0200 |
commit | 5216e488639fc8420d38c35177b796e1cf56ac8b (patch) | |
tree | c7016df7e88d637a74aaf7a439b4cf39d82f75ed /gui/pythontab.cc | |
parent | 98c594885698b557311ac84195599b35968719e0 (diff) | |
download | nextpnr-5216e488639fc8420d38c35177b796e1cf56ac8b.tar.gz nextpnr-5216e488639fc8420d38c35177b796e1cf56ac8b.tar.bz2 nextpnr-5216e488639fc8420d38c35177b796e1cf56ac8b.zip |
join python and info into one tab
Diffstat (limited to 'gui/pythontab.cc')
-rw-r--r-- | gui/pythontab.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/pythontab.cc b/gui/pythontab.cc index 5c349d7c..e761128d 100644 --- a/gui/pythontab.cc +++ b/gui/pythontab.cc @@ -16,7 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
-#ifndef NO_PYTHON
#include "pythontab.h"
#include <QGridLayout>
@@ -77,7 +76,6 @@ PythonTab::~PythonTab() void PythonTab::editLineReturnPressed(QString text)
{
console->displayString(prompt + text + "\n");
- console->moveCursorToEnd();
parseHelper.process(text.toStdString());
@@ -114,6 +112,6 @@ void PythonTab::showContextMenu(const QPoint &pt) { contextMenu->exec(mapToGloba void PythonTab::clearBuffer() { console->clear(); }
-NEXTPNR_NAMESPACE_END
+void PythonTab::info(std::string str) { console->displayString(str.c_str()); }
-#endif // NO_PYTHON
+NEXTPNR_NAMESPACE_END
|