From 9b22d0f8d649428a1bc1b922efc5559af86686a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 29 Jun 2017 17:20:36 +0200 Subject: [PATCH] Started activating PhasesTab for phase declaration. --- pylot/core/util/widgets.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 5905205d..6a8fd285 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2556,7 +2556,7 @@ class OutputsTab(PropTab): settings = QSettings() curval = settings.value("output/Format", None) - eventOutputLabel = QLabel("event/picks ouput format") + eventOutputLabel = QLabel("event/picks output format") self.eventOutputComboBox = QComboBox() eventoutputformats = OUTPUTFORMATS.keys() self.eventOutputComboBox.addItems(eventoutputformats) @@ -2582,7 +2582,21 @@ class PhasesTab(PropTab): def __init__(self, parent=None): super(PhasesTab, self).__init__(parent) - pass + PphasesLabel = QLabel("P Phases to pick") + SphasesLabel = QLabel("S Phases to pick") + self.PphasesEdit = QLineEdit() + self.SphasesEdit = QLineEdit() + Pphases = 'P, Pg, Pn, PmP, P1, P2, P3' + Sphases = 'S, Sg, Sn, SmS, S1, S2, S3' + self.PphasesEdit.setText("%s" % Pphases) + self.SphasesEdit.setText("%s" % Sphases) + + layout = QGridLayout() + layout.addWidget(PphasesLabel, 0, 0) + layout.addWidget(SphasesLabel, 1, 0) + layout.addWidget(self.PphasesEdit, 0, 1) + layout.addWidget(self.SphasesEdit, 1, 1) + self.setLayout(layout) class GraphicsTab(PropTab):