make sure the value is a float

This commit is contained in:
Damien Churchill 2009-08-21 00:57:08 +00:00
parent a75405feb0
commit 24db5bd72a

View File

@ -350,7 +350,7 @@ class Preferences(component.Component):
elif modifier == "not_active":
widget.set_active(not value)
elif modifier == "value":
widget.set_value(value)
widget.set_value(float(value))
elif modifier == "text":
widget.set_text(value)