in reply to Simple Calculator using Tk
Second I would not have the numbers dissapear before the next number is entered during a calculation. This could be achieved by maybe using a flag variable and set the flag when a calculation key is pressed and then when entering text check for the flag and if it has a value or a cetrtain value then clear before entering the text and if not then just append the text onto the existing number.
Lastly there seems to be an error when using decimal points in calculations. It only allows 2 decimal places after the decimal point and it does not calculate sometimes.
Other than those, good job!
|
---|