changes made in order to get the GUI working for the first time

This commit is contained in:
Sebastian Wehling-Benatelli 2014-11-26 08:46:16 +01:00
parent d0d17ee656
commit 9ff18c7425
2 changed files with 14 additions and 6 deletions

View File

@ -38,6 +38,7 @@ from pylot.core.util import (PickDlg,
MPLWidget, MPLWidget,
HelpForm) HelpForm)
from pylot.core.util import layoutStationButtons from pylot.core.util import layoutStationButtons
import qrc_resources
# Version information # Version information
__version__ = _getVersionString() __version__ = _getVersionString()
@ -58,7 +59,10 @@ class MainWindow(QMainWindow):
self.data = None self.data = None
self.loadData() self.loadData()
self.updateFilterOptions() self.updateFilterOptions()
self.startTime = min([tr.stats.starttime for tr in self.data.wfdata]) try:
self.startTime = min([tr.stats.starttime for tr in self.data.wfdata])
except:
self.startTime = UTCDateTime()
self.setupUi() self.setupUi()
@ -66,7 +70,10 @@ class MainWindow(QMainWindow):
return 'TestType' return 'TestType'
def loadData(self): def loadData(self):
self.data = Data() self.data = None
def getComponent(self):
return self
def getData(self): def getData(self):
return self.data return self.data
@ -99,11 +106,12 @@ class MainWindow(QMainWindow):
maingrid = QGridLayout() maingrid = QGridLayout()
maingrid.setSpacing(10) maingrid.setSpacing(10)
maingrid.addLayout(statLayout, 0, 0) maingrid.addLayout(statLayout, 0, 0)
maingrid.addLayout(dataLayout, 1, 0) maingrid.addWidget(dataLayout, 1, 0)
maingrid.setCentralWidget(dataLayout) self.setLayout(maingrid)
#self.setCentralWidget(dataLayout)
def plotData(self): def plotData(self):
self.data.plotData(self.DataPlot) pass #self.data.plotData(self.DataPlot)
def adjustFilterOptions(self): def adjustFilterOptions(self):
fstring = "Filter Options ({0})".format(self.getSeismicPhase()) fstring = "Filter Options ({0})".format(self.getSeismicPhase())

View File

@ -1 +1 @@
fbce-dirty 8cb6-dirty