[fix] parameters tab window flag for new qwidget window with parent

This commit is contained in:
Marcel Paffrath 2017-04-13 11:55:09 +02:00
parent de38b60893
commit 22ced8c07c
2 changed files with 10 additions and 7 deletions

View File

@ -1 +1 @@
e75c-dirty
de38-dirty

View File

@ -1530,13 +1530,16 @@ class ParametersTab(PropTab):
def __init__(self, parent=None, infile=None):
super(ParametersTab, self).__init__(parent)
self.commonpicksettings = QPushButton("Common Settings autoPyLoT")
self.commonpicksettings = QPushButton("&Common Settings autoPyLoT")
self.specialpicksettings = QPushButton("Special Settings autoPyLoT")
self.CFsettings = QPushButton("Special Settings for Calculating CF's")
self.FMsettings = QPushButton("Settings for First-Motion Picker")
self.qsettings = QPushButton("Quality Assessment")
self.sourcepara = QPushButton("Settings for Source Parameter Estimation")
self.parent = parent
self.infile = infile
layout = QGridLayout()
layout.addWidget(self.commonpicksettings, 0, 0)
layout.addWidget(self.specialpicksettings, 1, 0)
@ -1547,13 +1550,13 @@ class ParametersTab(PropTab):
self.setLayout(layout)
self.commonpicksettings.clicked.connect(lambda: self.ButtonCommonPickSettings(infile))
self.commonpicksettings.clicked.connect(self.ButtonCommonPickSettings)
def ButtonCommonPickSettings(self, infile):
def ButtonCommonPickSettings(self):#, event=None):
# get parameters from pylot.in-file
para = AutoPickParameter(infile)
para = AutoPickParameter(self.infile)
pstart = para.get('pstart')
pstop = para.get('pstop')
sstart = para.get('sstart')
@ -1563,7 +1566,7 @@ class ParametersTab(PropTab):
bph1 = para.get('bph1')
bph2 = para.get('bph2')
settings = QSettings()
self.widget = QWidget()
self.widget = QWidget(self.parent, 1)
self.widget.setWindowTitle("Common Settings autoPyLoT")
self.pCFcalcwinLabel = QLabel("Start/end time (relative to waveform onset) for calculating CF from waveform for P-pick [s]")