From 0f1292e9f251fc5560ba0df79384e2af5b1f74ea Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Mon, 29 May 2017 16:24:44 +0200 Subject: [PATCH] [bugfix] setValue not working when type(item) in QLineEdit was 'int' instead of 'str'(i.e. 'unicode') --- pylot/core/util/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 70e793da..318e2906 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1891,7 +1891,7 @@ class AutoPickParaBox(QtGui.QWidget): def setValue(self, box, value): if type(box) == QtGui.QLineEdit: - box.setText(value) + box.setText(str(value)) elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox: box.setMaximum(100*value) box.setValue(value)