devctrl.utility.decrease_value#
- decrease_value(values, getter, setter, name)[source]#
From a list of values, get the current value, decrease the value to the next possible value and set it using the getter.
- Parameters:
values – list of values
getter – Function returning a value in values
setter – Function taking a value from values
name – Name of the thing, used in a potential error message
- Returns:
The new value