do not print information to standard out but into the status bar (recognizable for the user)
This commit is contained in:
parent
dd8766277a
commit
3dd02d7f0c
@ -501,15 +501,15 @@ class MainWindow(QMainWindow):
|
|||||||
wfID = self.getWFID(gui_event)
|
wfID = self.getWFID(gui_event)
|
||||||
|
|
||||||
station = self.getStationName(wfID)
|
station = self.getStationName(wfID)
|
||||||
print 'picking on station {0}'.format(station)
|
self.updateStatus('picking on station {0}'.format(station))
|
||||||
data = self.getData().getWFData()
|
data = self.getData().getWFData()
|
||||||
pickDlg = PickDlg(self, data=data.select(station=station),
|
pickDlg = PickDlg(self, data=data.select(station=station),
|
||||||
station=station)
|
station=station)
|
||||||
if pickDlg.exec_():
|
if pickDlg.exec_():
|
||||||
print 'picks accepted'
|
self.updateStatus('picks accepted ({0})'.format(station))
|
||||||
self.getData().applyEVTData(pickDlg.getPicks())
|
self.addPicks(station, pickDlg.getPicks())
|
||||||
else:
|
else:
|
||||||
print 'picks not saved and closed dialog'
|
self.updateStatus('picks discarded ({0})'.format(station))
|
||||||
|
|
||||||
def addPicks(self, station, picks):
|
def addPicks(self, station, picks):
|
||||||
stat_picks = self.getPicksOnStation(station)
|
stat_picks = self.getPicksOnStation(station)
|
||||||
|
Loading…
Reference in New Issue
Block a user