[new] preparing MainWindow for location button

This commit is contained in:
Sebastian Wehling-Benatelli 2015-11-06 08:20:08 +01:00
parent 06337b4d66
commit 21bb39d528

View File

@ -759,6 +759,16 @@ class MainWindow(QMainWindow):
"PyLoT - seismic processing the python way[*]")
self.setWindowModified(self.dirty)
def check4Loc(self):
return self.picksNum() > 4
def picksNum(self):
num = 0
for phases in self.getPicks().values():
num += len(phases)
return num
def tutorUser(self):
self.updateStatus('select trace to pick on station ...', 10000)