Skip to content

About

simple python tkinter gui calculator that can takes mathematical expressions from the user and display answer!

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Simple-Calculator-Using-Python-Gui-Tkinter · Build Status npm PRs Welcome GitHub 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

pip install tk

Run This Code

Just run this code on code editor

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("<Return>", evaluate)
entry.pack()
res = Label(w)
res.pack()
w.mainloop()   #end

That Can take Mathematical expression from user and return answer!!

About

simple python tkinter gui calculator that can takes mathematical expressions from the user and display answer!

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages