changed loading of filter options, now immediately either a error status message or a success message is displayed in the main window if the filter parameter could not be loaded or were loaded respectively

This commit is contained in:
Sebastian Wehling-Benatelli 2014-10-27 12:04:01 +01:00
parent 77e7f666f0
commit c03b8a220f

View File

@ -97,9 +97,14 @@ class MainWindow(QMainWindow):
self.data.plotData(self.DataPlot)
def updateFilterOptions(self):
self.filteroptions = [self.filterOptionsP
if not self.seismicPhase == 'S'
else self.filterOptionsS]
try:
self.filteroptions = [self.filterOptionsP
if not self.seismicPhase == 'S'
else self.filterOptionsS]
except e:
self.updateStatus('Error: %s' % e + ' ... no filteroptions loaded')
else:
self.updateStatus('Filteroptions succesfully loaded ...')
def updateStatus(self, message):
self.statusBar().showMessage(message, 5000)