An open API service indexing awesome lists of open source software.

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!

Awesome Lists containing this project

README

          

# Simple-Calculator-Using-Python-Gui-Tkinter · [![Build Status](https://img.shields.io/travis/npm/npm/latest.svg?style=flat-square)](https://travis-ci.org/npm/npm) [![npm](https://img.shields.io/npm/v/npm.svg?style=flat-square)](https://www.npmjs.com/package/npm) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/your/your-project/blob/master/LICENSE)

Simple Python Calculator with tkinter UI


Gemchis Elias Simple ui calculator




## 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!!