8000 Pass the correct type to QSpinBox.setRange. · matplotlib/matplotlib@5e5f7bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e5f7bc

Browse files
committed
Pass the correct type to QSpinBox.setRange.
1 parent eb6664f commit 5e5f7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt_editor/_formlayout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def setup(self):
298298
field.setCheckState(QtCore.Qt.Unchecked)
299299
elif isinstance(value, Integral):
300300
field = QtWidgets.QSpinBox(self)
301-
field.setRange(-1e9, 5006 1e9)
301+
field.setRange(-10**9, 10**9)
302302
field.setValue(value)
303303
elif isinstance(value, Real):
304304
field = QtWidgets.QLineEdit(repr(value), self)

0 commit comments

Comments
 (0)
0