Skip to content

Custom Calculator: A Python-based calculator with a graphical user interface (GUI) using Tkinter for basic arithmetic calculations.

License

Notifications You must be signed in to change notification settings

vcxl-l/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Calculator Program

A basic calculator program built using Python and Tkinter.

Description

This calculator program allows users to perform addition, subtraction, multiplication, and division operations. It supports decimal numbers and provides a user-friendly interface with buttons for numbers 0-9 and common mathematical operators.

Installation

  1. Make sure you have Python installed on your system.
  2. Clone this repository or download the source code.
  3. Install the required dependencies by running the following command.
  4. Run the calculator program by executing the following command:
python calculator.py

Usage

  1. Click on the number buttons (0-9) to input numbers into the calculator.
  2. Click on the operator buttons (+, -, *, /) to perform corresponding operations.
  3. To calculate the result, click on the = button.
  4. The result will be displayed in the calculator's interface.
  5. To clear the input and start a new calculation, click on the clear button.

Screenshots

image

The calculator's user interface upon launching the program, displaying all the buttons and the input/display area.

image

Entering a series of numbers (e.g., 123.45) to demonstrate the calculator's ability to handle decimal values.

image image

Performing a basic arithmetic operation (e.g., 5 + 3) and displaying the resulting calculation on the interface.

image

Error handling in action, displaying an appropriate error message (e.g., division by zero) when encountering an error.

About

Custom Calculator: A Python-based calculator with a graphical user interface (GUI) using Tkinter for basic arithmetic calculations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages