Skip to content

This is a simple calculator GUI built using Python's tkinter module as well as notify user for error with help of exception handling. See demo at:

Notifications You must be signed in to change notification settings

Irish-C/calculator-class-program

Repository files navigation

CALCULATOR CLASS [NEW FEATURE!! Don't Miss OUT ^_^ ]

This is a simple calculator GUI built using Python's tkinter module. It allows users to perform basic mathematical operations such as addition, subtraction, multiplication and division.

  • THE LATEST UPDATE USED INHERITANCE AS WELL AS MULTIPLE OF IT.
  • Files added are below:

calculator_extended.py


> gui_extended.py

Update: Exponentiation have been Added. (June 4, 2023)

Getting Started

Installation

To get started, you'll need to have Python 3 installed on your computer.

Note: This program might works only for windows os.


I used VS Code to create and run the program.

Dependencies

To install the tkinter module, open up your terminal or command prompt and type: pip install tkinter

Usage

  1. clone or download the project and run the main.py file. This will open up the calculator GUI window.
  • git clone <repository link>
  1. Now, To use the calculator, select the mathematical operation you want to perform from the dropdown menu.
  2. Then enter the first and second numbers in the input fields and click the "Calculate" button.
  3. The result will be displayed in the result label below.
  4. You can also clear the inputs and selection by clicking the "Clear" button.

preview

NEW FEATURE!!!

  1. Exponentiation is our latest feature. First number serves as the base while the Second number serves as the exponent!

exponent

Test

To run the tests for your calculator-class program on Windows:

  1. Open a command prompt or terminal and navigate to the project's root directory.
  2. Ensure that pytest is installed. If not, use pip install pytest to install it.
  3. Run the tests using the command pytest in the command prompt or terminal. That's it! Use pytest to easily run the tests for your calculator-class program on Windows.

Found a bug?

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Contact Me

If you found a bug, you may contact me >> Facebook

About

This is a simple calculator GUI built using Python's tkinter module as well as notify user for error with help of exception handling. See demo at:

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages