From 7092f6e8b5f33f10ec14b18fd6d843196b56abd8 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Sat, 7 Feb 2015 09:03:03 +0100 Subject: [PATCH] the MainWindow now should give the right component in the title --- QtPyLoT.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 27bdb489..0d724e2e 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -103,6 +103,8 @@ class MainWindow(QMainWindow): _widget = QWidget() _layout = QHBoxLayout() + plottitle = "Overview: {0} components ".format(self.getComponent()) + # create central matplotlib figure widget self.DataPlot = MPLWidget(parent=self, xlabel=xlab, @@ -302,8 +304,8 @@ class MainWindow(QMainWindow): return False return True - def getDispComponent(self): - return self._compDisp + def getComponent(self): + return self.dispComponent def getData(self): return self.data