do not print information to standard out but into the status bar (recognizable for the user)

This commit is contained in:
Sebastian Wehling-Benatelli 2015-07-07 10:44:06 +02:00
parent dd8766277a
commit 3dd02d7f0c

View File

@ -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)