diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-27 11:45:19 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-27 11:45:19 +0200 |
commit | bafb4702c7176a08e4a9b2088297071a7bed6656 (patch) | |
tree | a59132f64cba845f2b65c02441229fa26a00aa9e /gui/basewindow.cc | |
parent | 9bb489936078980e98fc873845b2ca64ddb490fb (diff) | |
download | nextpnr-bafb4702c7176a08e4a9b2088297071a7bed6656.tar.gz nextpnr-bafb4702c7176a08e4a9b2088297071a7bed6656.tar.bz2 nextpnr-bafb4702c7176a08e4a9b2088297071a7bed6656.zip |
reinit python tab
Diffstat (limited to 'gui/basewindow.cc')
-rw-r--r-- | gui/basewindow.cc | 4 |
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");
|