Dec-30-2019, 10:30 PM
Hello everyone, I'm a beginner in python coding and in GUI developing.
I'm trying to develop a little GUI that takes only two float numbers in input and then add this two numbers with a function and give me the result in another QLineEdit (in Read Only mode).
The GUI work well if I insert int and float number but it breaks down if I insert characters or words or ' 1,2,35' values for example.
I'm searching the way to insert only positive numbers (float), for example '1,23' or '1.23' or '123'.
Can you help me, please?
I'm trying to develop a little GUI that takes only two float numbers in input and then add this two numbers with a function and give me the result in another QLineEdit (in Read Only mode).
The GUI work well if I insert int and float number but it breaks down if I insert characters or words or ' 1,2,35' values for example.
I'm searching the way to insert only positive numbers (float), for example '1,23' or '1.23' or '123'.
Can you help me, please?