From cb80170ccf447912a1e31d6e3a1241c531af25b2 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 11 Jun 2014 05:48:21 +0200 Subject: [PATCH] some non-functional snippets deleted to promote GUI debugging --- pylot/QtPyLoT.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/pylot/QtPyLoT.py b/pylot/QtPyLoT.py index 1d71a337..52601afc 100755 --- a/pylot/QtPyLoT.py +++ b/pylot/QtPyLoT.py @@ -57,22 +57,20 @@ class MainWindow(QMainWindow): self.setupUi() def loadData(self): - loadDataDlg = LoadDataDlg(self) - - dataStream = read() + pass def setupUi(self): self.setWindowIcon(QIcon("PyLoT.ico")) # create central matplotlib figure widget - dataLayout = setupPlot() + self.DataPlot = MPLWidget(parent=self) filterDockWidget = FilterOptionsDock(titleString="Filter Options", parent=self, filterOptions=filteroptions) self.eventLabel = QLabel() - self.eventLabel.setFrameStyle(QFrame.StyledPanel|QFrame.Sunken) + self.eventLabel.setFrameStyle(QFrame.StyledPanel | QFrame.Sunken) status = self.statusBar() status.setSizeGripEnabled(False) status.addPermanentWidget(self.eventLabel) @@ -84,16 +82,7 @@ class MainWindow(QMainWindow): maingrid.setSpacing(10) maingrid.addLayout(statLayout, 0, 0) maingrid.addLayout(dataLayout, 1, 0) - maingrid.addWidget() - - def setupPlot(self): - # create a matplotlib widget - self.DataPlot = MPLWidget(parent=self) - # create a layout inside the blank widget and add the matplotlib widget - layout = QVBoxLayout(self.ui.widget_PlotArea) - layout.addWidget(self.DataPlot, 1) - - return layout + maingrid.setCentralWidget(self.DataPlot) def plotData(self, data): if data is not None and isinstance(data, Stream): @@ -123,6 +112,8 @@ class MainWindow(QMainWindow): self.__del__() layout.addWidget(stationButtons) + return layout + def helpHelp(self): if internet_on(): pass