8.8  <float>

A floating point setting. Its representation is a spin button.

8.8.1  Attributes

Name Type Default Value Description
bind string The name of the variable or property to which the configuration element is bound.
digits integer 2 The number of decimal digits.
callback function [new in 0.34] A callback function which is called every time the value changes. The callback takes the name of the bound property and the new value as arguments.
enabled boolean true [new in 0.34] Whether the config item is enabled. Disabled items appear greyed out.
help string The tooltip text for the element in the configuration dialog.
label string The label text for the element in the configuration dialog.
min float 0.0 The minimal value allowed.
max float 9999.0 The maximal value allowed.

8.8.2  Examples

<float label="Size:" bind="size" min="0.5" max="50.0"
       help="The size of the clockface."/>