This project is a simple graphical calculator application built using Python's tkinter library. The calculator supports basic arithmetic operations including addition, subtraction, multiplication, division, and modulus. It also supports the use of parentheses for grouping expressions.
- Basic arithmetic operations: addition, subtraction, multiplication, division, and modulus.
- Supports parentheses for grouping expressions.
- Clear button to reset the input.
- Equals button to evaluate the expression.
calculator.py: The main Python file containing the logic and GUI for the calculator.
This project requires Python and the tkinter library, which is included with Python by default.
-
Ensure you have Python installed on your machine. You can download Python from python.org.
-
Clone this repository or download the
calculator.pyfile.
-
Open a terminal or command prompt.
-
Navigate to the directory where the
calculator.pyfile is located. -
Run the following command to start the calculator:
python calculator.pyThe output of the Calculator GUI will be similar to above.
1.Creating A Calculator Using Tkinter | Python Tkinter GUI Tutorial
2.SOLID Principles: Improve Object-Oriented Design in Python
The assignment is distributed under the MIT License. Read the LICENSE file for more details.
