Show More
@@ -110,7 +110,7 b' def _widget_abbrev(o):' | |||||
110 | elif _matches(o, [float_or_int]*4): |
|
110 | elif _matches(o, [float_or_int]*4): | |
111 | min, low, high, max = o |
|
111 | min, low, high, max = o | |
112 | if not min <= low <= high <= max: |
|
112 | if not min <= low <= high <= max: | |
113 |
raise ValueError("Range input expects min <= low <= high <= max, got |
|
113 | raise ValueError("Range input expects min <= low <= high <= max, got {0}".format(o)) | |
114 | if all(isinstance(_, int) for _ in o): |
|
114 | if all(isinstance(_, int) for _ in o): | |
115 | cls = IntRangeSliderWidget |
|
115 | cls = IntRangeSliderWidget | |
116 | else: |
|
116 | else: | |
@@ -119,7 +119,7 b' def _widget_abbrev(o):' | |||||
119 | elif _matches(o, [float_or_int]*5): |
|
119 | elif _matches(o, [float_or_int]*5): | |
120 | min, low, high, max, step = o |
|
120 | min, low, high, max, step = o | |
121 | if not min <= low <= high <= max: |
|
121 | if not min <= low <= high <= max: | |
122 |
raise ValueError("Range input expects min <= low <= high <= max, got |
|
122 | raise ValueError("Range input expects min <= low <= high <= max, got {0}".format(o)) | |
123 | if step <= 0: |
|
123 | if step <= 0: | |
124 | raise ValueError("step must be >= 0, not %r" % step) |
|
124 | raise ValueError("step must be >= 0, not %r" % step) | |
125 | if all(isinstance(_, int) for _ in o): |
|
125 | if all(isinstance(_, int) for _ in o): |
General Comments 0
You need to be logged in to leave comments.
Login now