new attribute dispComponent added to the MainWindow class to control the displayed component

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-04 14:50:49 +01:00
parent 401c09d0b4
commit bc87c12cfa

View File

@ -68,6 +68,7 @@ class MainWindow(QMainWindow):
self.setWindowTitle("PyLoT - do seismic processing the python way") self.setWindowTitle("PyLoT - do seismic processing the python way")
self.setWindowIcon(QIcon(":/icon.ico")) self.setWindowIcon(QIcon(":/icon.ico"))
self.seismicPhase = str(settings.value("phase", "P")) self.seismicPhase = str(settings.value("phase", "P"))
self.dispComponent = str(settings.value("plotting/dispComponent", "Z"))
if settings.value("data/dataRoot", None) is None: if settings.value("data/dataRoot", None) is None:
dirname = QFileDialog().getExistingDirectory( dirname = QFileDialog().getExistingDirectory(
caption='Choose data root ...') caption='Choose data root ...')