optimization of the codes outer appearance

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-16 10:31:25 +01:00
parent fa6db084b8
commit 8acd84976e

View File

@ -110,10 +110,8 @@ class MainWindow(QMainWindow):
plottitle = "Overview: {0} components ".format(self.getComponent()) plottitle = "Overview: {0} components ".format(self.getComponent())
# create central matplotlib figure widget # create central matplotlib figure canvas widget
self.DataPlot = MPLWidget(parent=self, self.DataPlot = MPLWidget(parent=self, xlabel=xlab, ylabel=None,
xlabel=xlab,
ylabel=None,
title=plottitle) title=plottitle)
statsButtons = layoutStationButtons(self.getData(), self.getComponent()) statsButtons = layoutStationButtons(self.getData(), self.getComponent())
_layout.addLayout(statsButtons) _layout.addLayout(statsButtons)
@ -297,7 +295,8 @@ class MainWindow(QMainWindow):
if self.dataStructure: if self.dataStructure:
searchPath = self.dataStructure.expandDataPath() searchPath = self.dataStructure.expandDataPath()
fnames, = QFileDialog.getOpenFileNames(self, fnames, = QFileDialog.getOpenFileNames(self,
"Select waveform files:", "Select waveform "
"files:",
dir=searchPath) dir=searchPath)
self.fnames = fnames self.fnames = fnames