From 2d78ce6f87b6a314fc57b5bdb08fb7d230795135 Mon Sep 17 00:00:00 2001 From: Luke Campagnola Date: Fri, 14 Nov 2014 07:42:17 -0500 Subject: [PATCH] Fix attributeerror when using spinbox in parametertree --- pyqtgraph/widgets/SpinBox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/widgets/SpinBox.py b/pyqtgraph/widgets/SpinBox.py index 23516827..1d8600c4 100644 --- a/pyqtgraph/widgets/SpinBox.py +++ b/pyqtgraph/widgets/SpinBox.py @@ -239,7 +239,7 @@ class SpinBox(QtGui.QAbstractSpinBox): Select the numerical portion of the text to allow quick editing by the user. """ le = self.lineEdit() - text = le.text() + text = asUnicode(le.text()) try: index = text.index(' ') except ValueError: