setFloat
Used to allow the user to set precise floats, editable by each place value.
Initializing
Same as others, pass the tinyPillow object, aswell as a caption (string)
Select a minimum value and a maximum value, aswell as a starting value using _min, _max, start kwargs, respectively.
setFloat = tpil.gui.setFloat(tpil, "Set Value", _min=10.0, _max=11.5, start="10.5")Usage
Just use .start(). This is a blocking function, so it'll wait till the user is done entering their value.
userFloat = setFloat.start()Returns the float entered by the user.
Last updated