I want the user to be able to type only a float (that is, numbers from 0 to 9 and the decimal point should show, other characters should not). How can I do that ?
edit
I need to get values like “4” or “3.5” or “.9”, nothing like “10e23”
Inconsistent values should also be rejected, such as “10.12.45” …
I’ve finally an acceptable answer thanks to SO question “How to extract a floating number from a string in Python”
in the init part,
and :
connected to the “changed” event of the entry. Many thanks to all those who helped.