Skip to content

The Calculator is a 💪 powerful and user-friendly desktop application. Perform basic arithmetic operations, keep track of your history, and save your results to a file with this tool.

License

Notifications You must be signed in to change notification settings

hrosicka/SimpleCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyQtSimpleCalculator

Simple calculator with history and saving results in PyQt

Functions

  • Operations
    • 4 basics: + - * /
  • History view
  • History save
    • create file history_calc.txt
  • Input clear
  • History clear

Enter inputs

  • Enter number 1:

  • Enter number 2:

  • Every button has tooltip:

  • Input can be only a number:

  • Numbers can not be devided by zero:

Results

Unit tests

Class TestCalculator

Class TestCalculator contains unit tests for the Calculator class.

These tests verify the functionality of the calculator's basic arithmetic operations (addition, subtraction, multiplication, and division) for various inputs, including:

  • Positive and negative numbers
  • Mixed combinations of positive and negative numbers
  • Zero values
  • Limit cases with very large or very small numbers The tests also ensure that division by zero raises a CalculatorError.

About

The Calculator is a 💪 powerful and user-friendly desktop application. Perform basic arithmetic operations, keep track of your history, and save your results to a file with this tool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages