easygui icon indicating copy to clipboard operation
easygui copied to clipboard

feature request: floatbox (like integerbox)

Open horstjens opened this issue 11 years ago • 1 comments

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.

horstjens avatar Dec 24 '14 06:12 horstjens

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

robertlugg avatar Dec 27 '14 08:12 robertlugg