Fix a bug in the gauge code
This commit is contained in:
@@ -184,8 +184,8 @@ class PyGauge(wx.PyWindow):
|
|||||||
:param `range`: The maximum value of the gauge.
|
:param `range`: The maximum value of the gauge.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if range <= 0:
|
if range < 0:
|
||||||
raise Exception("ERROR:\n Gauge range must be greater than 0.")
|
raise Exception("ERROR:\n Gauge range must be greater than 0. It was %.1f" % range)
|
||||||
|
|
||||||
self._range = range
|
self._range = range
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user