added utility functions for pick handling
This commit is contained in:
parent
f99f5dbc8f
commit
4990e33d27
10
QtPyLoT.py
10
QtPyLoT.py
@ -80,6 +80,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
self.filteroptions = {}
|
||||
self.pickDlgs = {}
|
||||
self.picks = {}
|
||||
|
||||
# UI has to be set up before(!) children widgets are about to show up
|
||||
self.setupUi()
|
||||
@ -349,6 +350,15 @@ class MainWindow(QMainWindow):
|
||||
def getData(self):
|
||||
return self.data
|
||||
|
||||
def getPicks(self):
|
||||
return self.picks
|
||||
|
||||
def getPicksOnStation(self, station):
|
||||
try:
|
||||
return self.getPicks()[station]
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
def getPlotWidget(self):
|
||||
return self.DataPlot
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user