changes made in order to get the GUI working for the first time
This commit is contained in:
parent
d0d17ee656
commit
9ff18c7425
16
QtPyLoT.py
16
QtPyLoT.py
@ -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()
|
||||||
|
try:
|
||||||
self.startTime = min([tr.stats.starttime for tr in self.data.wfdata])
|
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())
|
||||||
|
@ -1 +1 @@
|
|||||||
fbce-dirty
|
8cb6-dirty
|
||||||
|
Loading…
Reference in New Issue
Block a user