[bugfix] setValue not working when type(item) in QLineEdit was 'int' instead of 'str'(i.e. 'unicode')
This commit is contained in:
parent
41a870d720
commit
0f1292e9f2
@ -1891,7 +1891,7 @@ class AutoPickParaBox(QtGui.QWidget):
|
|||||||
|
|
||||||
def setValue(self, box, value):
|
def setValue(self, box, value):
|
||||||
if type(box) == QtGui.QLineEdit:
|
if type(box) == QtGui.QLineEdit:
|
||||||
box.setText(value)
|
box.setText(str(value))
|
||||||
elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox:
|
elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox:
|
||||||
box.setMaximum(100*value)
|
box.setMaximum(100*value)
|
||||||
box.setValue(value)
|
box.setValue(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user