Skip to content

CN120/Python_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

calc.py

This program is a small sample program to show my proficiency in python and use of the tkinter library.

Its intended functionality is pretty self explanitory: to be a calculator. I modeled it after the calculator in macOS as I wanted to challendge myself to see how long it would take me to replicate the basic functionality. While it is not perfect, I believe I got most of what I wanted in a relatively short amount of time.

Building a calculator may seem simple, but there are a few edge cases that make thing more complicated. I dont think that I covered all edge cases with this program, but this calculator does take into account stored values and I did my best to perform the most logical operation based on the pattern of buttons pushed. This includes being able to repeat the previous calculation by repeatedly pressing '=' button as well as having two stages of clear functionality: one to clear the display, the other to clear the memory/stored value.

To run this program, the python tkinter library is required to create the gui. This is included with the official release of python found on python.org

About

small sample project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages