the MainWindow now should give the right component in the title

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-07 09:03:03 +01:00
parent bc87c12cfa
commit 7092f6e8b5

View File

@ -103,6 +103,8 @@ class MainWindow(QMainWindow):
_widget = QWidget() _widget = QWidget()
_layout = QHBoxLayout() _layout = QHBoxLayout()
plottitle = "Overview: {0} components ".format(self.getComponent())
# create central matplotlib figure widget # create central matplotlib figure widget
self.DataPlot = MPLWidget(parent=self, self.DataPlot = MPLWidget(parent=self,
xlabel=xlab, xlabel=xlab,
@ -302,8 +304,8 @@ class MainWindow(QMainWindow):
return False return False
return True return True
def getDispComponent(self): def getComponent(self):
return self._compDisp return self.dispComponent
def getData(self): def getData(self):
return self.data return self.data