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.filteroptions = {}
|
||||||
self.pickDlgs = {}
|
self.pickDlgs = {}
|
||||||
|
self.picks = {}
|
||||||
|
|
||||||
# UI has to be set up before(!) children widgets are about to show up
|
# UI has to be set up before(!) children widgets are about to show up
|
||||||
self.setupUi()
|
self.setupUi()
|
||||||
@ -349,6 +350,15 @@ class MainWindow(QMainWindow):
|
|||||||
def getData(self):
|
def getData(self):
|
||||||
return self.data
|
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):
|
def getPlotWidget(self):
|
||||||
return self.DataPlot
|
return self.DataPlot
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user