https://github.com/sempedia/calculator
Simple Calculator using tkinter GUI and Python
https://github.com/sempedia/calculator
Last synced: 7 months ago
JSON representation
Simple Calculator using tkinter GUI and Python
- Host: GitHub
- URL: https://github.com/sempedia/calculator
- Owner: sempedia
- Created: 2022-12-04T22:12:13.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T00:26:16.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T09:49:31.424Z (9 months ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple Calculator using tkinter GUI and Python
The Calculator GUI contains:
- Two fields that the user can use to enter numbers.
- A button to evaluate the operation choosed.
- A radion button group of 4 to select the operation to perform.The Calculator can perform 4 operations:
- Addition
- Substraction
- Multiplication
- DivisionThe Calculator Behaviour is:
- If the values entered by user are a whitespace, a string or any other character beside an integer or a floating number, then, the operation cannot be done and when click on Evaluate button, a message box will open separatly and will show the Error description and the focus will be on the Entry field that contain the error.
- If the values entered by user are valid(integer or float), then, when click on Evaluate button, a message box will open separatly and will show the Result of that specific operation.
- If the value entered by user is zero and we choose division as operation, then, when click on Evaluate button, a message box will open separatly and will show the Error description and the focus will be on the Entry field that contain the error.