aboutsummaryrefslogtreecommitdiffstats
path: root/gui/basewindow.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-27 11:45:19 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-27 11:45:19 +0200
commitbafb4702c7176a08e4a9b2088297071a7bed6656 (patch)
treea59132f64cba845f2b65c02441229fa26a00aa9e /gui/basewindow.cc
parent9bb489936078980e98fc873845b2ca64ddb490fb (diff)
downloadnextpnr-bafb4702c7176a08e4a9b2088297071a7bed6656.tar.gz
nextpnr-bafb4702c7176a08e4a9b2088297071a7bed6656.tar.bz2
nextpnr-bafb4702c7176a08e4a9b2088297071a7bed6656.zip
reinit python tab
Diffstat (limited to 'gui/basewindow.cc')
-rw-r--r--gui/basewindow.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/basewindow.cc b/gui/basewindow.cc
index 69f4f622..2e8d7c85 100644
--- a/gui/basewindow.cc
+++ b/gui/basewindow.cc
@@ -74,7 +74,9 @@ BaseMainWindow::BaseMainWindow(QWidget *parent) : QMainWindow(parent), ctx(nullp
tabWidget = new QTabWidget();
#ifndef NO_PYTHON
- tabWidget->addTab(new PythonTab(), "Python");
+ PythonTab *pythontab = new PythonTab();
+ tabWidget->addTab(pythontab, "Python");
+ connect(this, SIGNAL(contextChanged(Context*)), pythontab, SLOT(newContext(Context*)));
#endif
info = new InfoTab();
tabWidget->addTab(info, "Info");