Commit 89219aa6 authored by Thomas Vincent's avatar Thomas Vincent

avoid duplicate local variable.attribute

parent 48ae962e
......@@ -158,20 +158,20 @@ class ConversionParamsWidget(Qt.QWidget):
self.__medfiltCBox.toggled.connect(inputBase.setEnabled)
medfiltHEdit = StyledLineEdit(nChar=5)
medfiltHEdit.setValidator(Qt.QIntValidator(medfiltHEdit))
medfiltHEdit.setAlignment(Qt.Qt.AlignRight)
# medfiltHEdit.setText(str(medfiltDims[0]))
self.__medfiltHEdit = StyledLineEdit(nChar=5)
self.__medfiltHEdit.setValidator(Qt.QIntValidator(self.__medfiltHEdit))
self.__medfiltHEdit.setAlignment(Qt.Qt.AlignRight)
# self.__medfiltHEdit.setText(str(medfiltDims[0]))
medfiltVEdit = StyledLineEdit(nChar=5)
medfiltVEdit.setValidator(Qt.QIntValidator(medfiltVEdit))
medfiltVEdit.setAlignment(Qt.Qt.AlignRight)
# medfiltVEdit.setText(str(medfiltDims[1]))
self.__medfiltVEdit = StyledLineEdit(nChar=5)
self.__medfiltVEdit.setValidator(Qt.QIntValidator(self.__medfiltVEdit))
self.__medfiltVEdit.setAlignment(Qt.Qt.AlignRight)
# self.__medfiltVEdit.setText(str(medfiltDims[1]))
medfiltLayout.addWidget(Qt.QLabel('w='))
medfiltLayout.addWidget(medfiltHEdit)
medfiltLayout.addWidget(self.__medfiltHEdit)
medfiltLayout.addWidget(Qt.QLabel('h='))
medfiltLayout.addWidget(medfiltVEdit)
medfiltLayout.addWidget(self.__medfiltVEdit)
imgGboxLayout.addRow(self.__medfiltCBox, inputBase)
......@@ -184,34 +184,28 @@ class ConversionParamsWidget(Qt.QWidget):
qspaceGbox = SubGroupBox('QSpace grid dimensions.')
qspaceLayout = Qt.QHBoxLayout(qspaceGbox)
qDimsXEdit = StyledLineEdit(nChar=5)
qDimsYEdit = StyledLineEdit(nChar=5)
qDimsZEdit = StyledLineEdit(nChar=5)
self.__qDimsXEdit = StyledLineEdit(nChar=5)
self.__qDimsYEdit = StyledLineEdit(nChar=5)
self.__qDimsZEdit = StyledLineEdit(nChar=5)
dimLayout = Qt.QHBoxLayout()
qspaceLayout.addLayout(dimLayout)
dimLayout.addWidget(Qt.QLabel('qx:'))
dimLayout.addWidget(qDimsXEdit)
dimLayout.addWidget(self.__qDimsXEdit)
dimLayout.addStretch(1)
dimLayout = Qt.QHBoxLayout()
qspaceLayout.addLayout(dimLayout)
dimLayout.addWidget(Qt.QLabel('qy:'))
dimLayout.addWidget(qDimsYEdit)
dimLayout.addWidget(self.__qDimsYEdit)
dimLayout.addStretch(1)
dimLayout = Qt.QHBoxLayout()
qspaceLayout.addLayout(dimLayout)
dimLayout.addWidget(Qt.QLabel('qz:'))
dimLayout.addWidget(qDimsZEdit)
dimLayout.addWidget(self.__qDimsZEdit)
dimLayout.addStretch(1)
self.__medfiltHEdit = medfiltHEdit
self.__medfiltVEdit = medfiltVEdit
self.__qDimsXEdit = qDimsXEdit
self.__qDimsYEdit = qDimsYEdit
self.__qDimsZEdit = qDimsZEdit
layout.addWidget(qspaceGbox)
self.setMedfiltDims(medfiltDims)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment