A Calculator is a device that is used to perform arithmetic operations like addition, subtraction, multiplication, division.
This project is done using the module tkinter. This module is used for GUI toolkit. In Python this is widely used for GUI based projects.
With the help of tkinter developing GUI applications became easy.
This module is imported same like other modules.
It is imported as import tkinter.
Once this package is installed the main window can be created using mainloop().
Depending on the intrest we can change the class name as well.
We can add title using window.title("").
Installation of tkinter module:
tkinter can be installed using using pip in Command Prompt by the command- pip install tk.
(or)
In Pycharm it can be installed as follows:
Goto File option,select settings,select python interpreter a new window will open from that select the '+' symbol. A searchbar will open, search the module that you want to install then click on ok,the module will be installed.
Submitted by Obulshetty Niharika (Niharika7)
Download packets of source code on Coders Packet
Comments