Skip to content

Commit e93059f

Browse files
committed
Merge pull request matplotlib#1547 from mdboom/qt4editor-formlayout-float-bug
qt4_editor/formlayout.py TypeError: float() argument must be a string or a number
2 parents 67ef316 + a439ab7 commit e93059f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt4_editor/formlayout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def get(self):
353353
elif isinstance(value, bool):
354354
value = field.checkState() == Qt.Checked
355355
elif isinstance(value, float):
356-
value = float(field.text())
356+
value = float(str(field.text()))
357357
elif isinstance(value, int):
358358
value = int(field.value())
359359
elif isinstance(value, datetime.datetime):

0 commit comments

Comments
 (0)