From abbe9cb2c43631b9b0e56c1eecd9b72480d2eae8 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 18 Feb 2015 15:34:21 +0100 Subject: [PATCH] bugfix: missed to call get method before trying to fetch an item --- pylot/core/util/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 601c6d6e..03c0abab 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -307,7 +307,7 @@ class FilterOptionsDialog(QDialog): self.freqminSpinBox.setRange(5e-7, 1e6) self.freqminSpinBox.setDecimals(2) self.freqminSpinBox.setSuffix(' Hz') - self.freqminSpinBox.setValue(self.getFilterOptions().getFreq[0]) + self.freqminSpinBox.setValue(self.getFilterOptions().getFreq()[0]) self.freqmaxLabel = QLabel() self.freqmaxLabel.setText("maximum:") self.freqmaxSpinBox = QDoubleSpinBox() @@ -315,7 +315,7 @@ class FilterOptionsDialog(QDialog): self.freqmaxSpinBox.setDecimals(2) self.freqmaxSpinBox.setSuffix(' Hz') if self.filterOptions.filterType in ['bandpass', 'bandstop']: - self.freqmaxSpinBox.setValue(self.getFilterOptions().getFreq[1]) + self.freqmaxSpinBox.setValue(self.getFilterOptions().getFreq()[1]) typeOptions = ["bandpass", "bandstop", "lowpass", "highpass"]