some non-functional snippets deleted to promote GUI debugging

This commit is contained in:
Sebastian Wehling-Benatelli 2014-06-11 05:48:21 +02:00
parent e7507a325f
commit cb80170ccf

View File

@ -57,15 +57,13 @@ class MainWindow(QMainWindow):
self.setupUi() self.setupUi()
def loadData(self): def loadData(self):
loadDataDlg = LoadDataDlg(self) pass
dataStream = read()
def setupUi(self): def setupUi(self):
self.setWindowIcon(QIcon("PyLoT.ico")) self.setWindowIcon(QIcon("PyLoT.ico"))
# create central matplotlib figure widget # create central matplotlib figure widget
dataLayout = setupPlot() self.DataPlot = MPLWidget(parent=self)
filterDockWidget = FilterOptionsDock(titleString="Filter Options", filterDockWidget = FilterOptionsDock(titleString="Filter Options",
parent=self, parent=self,
@ -84,16 +82,7 @@ class MainWindow(QMainWindow):
maingrid.setSpacing(10) maingrid.setSpacing(10)
maingrid.addLayout(statLayout, 0, 0) maingrid.addLayout(statLayout, 0, 0)
maingrid.addLayout(dataLayout, 1, 0) maingrid.addLayout(dataLayout, 1, 0)
maingrid.addWidget() maingrid.setCentralWidget(self.DataPlot)
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
def plotData(self, data): def plotData(self, data):
if data is not None and isinstance(data, Stream): if data is not None and isinstance(data, Stream):
@ -123,6 +112,8 @@ class MainWindow(QMainWindow):
self.__del__() self.__del__()
layout.addWidget(stationButtons) layout.addWidget(stationButtons)
return layout
def helpHelp(self): def helpHelp(self):
if internet_on(): if internet_on():
pass pass