Skip to content

Latest commit

 

History

History
99 lines (93 loc) · 2.85 KB

File metadata and controls

99 lines (93 loc) · 2.85 KB

Advance calculator with GUI using Tkinter in python.


Python offers a lot of options to develop GUI applications, but Tkinter is the most usable module for developing GUI(Graphical User Interface). Since Tkinter is cross-platform so it works on both windows and Linux. So here i am using Tkinter module to create a simple python calculator. The fastest and easiest way of developing GUI applications in python is working with Tkinter. So let’s took a quick look on Tkinter.

What is Tkinter


The Tkinter module (“Tk interface”) is the standard Python interface to the Tk GUI toolkit. Both Tk and Tkinter are available on most Unix platforms, as well as on Windows systems. If you work on Linux/Ubuntu then you have to install Tkinter module on your machine for running programs, but on windows you don’t need to install it because it comes with the default python installation.

Prerequisite For Python Calculator

For developing a simple GUI calculator in python you must have to prior knowledge of following –
1. Tkinter
2. Lambda

On this calculator we can perform following many mathematical calculations
● Multiplication ● Addition ● Subtraction ● Division ● pi ● sin ● cos ● tan ● Exponent(e) ● log

And now we will start writing codes for making this. To create this we have to do four things
1. Importing Tkinter module
2. Creating the main interface(window for calculator)
3. Adding any number of widgets to the main interface
4. Applying the event trigger on widgets

How to Use

1. Clone this repository.
2. Allow execution of the Calculator_ui.py
3. Execute Calculator_ui.py


Supported Operations

Function
Addition(+)
Subtraction(-)
Multiplication(*)
Division(/)
pi
Exponent(e)
sin
cos
tan
log
brackets & all other complex operation

How to Contribute

1. Fork the the project
2. Create your feature branch (git checkout -b my-new-feature)
3. Make required changes and commit (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request

Feel free to contribute

Questions ?

Hit me on