https://github.com/chisa-dev/simple-calculator-using-python-ui-tkinter
simple python tkinter gui calculator that can takes mathematical expressions from the user and display answer!
https://github.com/chisa-dev/simple-calculator-using-python-ui-tkinter
calculator gui python tkinter
Last synced: 3 months ago
JSON representation
simple python tkinter gui calculator that can takes mathematical expressions from the user and display answer!
- Host: GitHub
- URL: https://github.com/chisa-dev/simple-calculator-using-python-ui-tkinter
- Owner: chisa-dev
- Created: 2019-04-24T12:18:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-24T07:33:14.000Z (over 3 years ago)
- Last Synced: 2025-10-26T19:43:20.641Z (7 months ago)
- Topics: calculator, gui, python, tkinter
- Language: Python
- Homepage: https://horansoftware.com
- Size: 15.6 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-Calculator-Using-Python-Gui-Tkinter · [](https://travis-ci.org/npm/npm) [](https://www.npmjs.com/package/npm) [](http://makeapullrequest.com) [](https://github.com/your/your-project/blob/master/LICENSE)
Simple Python Calculator with tkinter UI
## Installing / Getting started
Tkinter can be installed using pip. The following command is run in the command prompt to install Tkinter
```shell
pip install tk
```
### Run This Code
Just run this code on code editor
```shell
from tkinter import * #import all from tkinter module
from math import *
def evaluate(event):
res.configure(text = "መልስ = " + str(eval(entry.get())))
w = Tk()
#Display የምሆኑ ፁሁፎች ናቸው
Label(w, text=" Python tkinter Calculator").pack()
Label(w, text="").pack()
Label(w, text=" ቀላል የሒሳብ Calculator ").pack()
Label(w, text=" ").pack()
Label(w, text=" ጥያቄውን ያስገቡ: ").pack()
#-----------------------------------
entry = Entry(w) #take inpute from user
entry.bind("", evaluate)
entry.pack()
res = Label(w)
res.pack()
w.mainloop() #end
```
That Can take Mathematical expression from user and return answer!!