feature request: floatbox (like integerbox)
a box to enter numeric float (and integer) values, with default, lowerbound and upperbound. Ideally a list of accepted decimal point signs should be an optional parameter
def floatbox(msg="please enter float or integer", title="", default=0.0, lowerbound=0.0, upperbound=99.9999, acceptable_decimal_signs=[".",","] ):
The floatbox shows an error message like the integerbox when the entered value is not integer nor float, or if the entered value is below lowerbound and above upperbound. Error message is also shown if more than one single decimal sign is entered.
I think every text entry box should support this. if we add a 'type=str' argument, for instance, the GUI will require you to enter a valid string before pressing OK. Same with other types like type=float