from tkinter import Tk
from tkinter import Entry
from tkinter import Button
from tkinter import StringVar

t=Tk()
t.title("Tarun Jaiswal")
t.geometry("425x300")
t.resizable(0,0)

t.configure(background="black")#back ground color

a=StringVar()
def show(c):
    a.set(a.get()+c)


def equal():
    x=a.get()
    a.set(eval(x))

def clear():
    a.set("")
    

e1=Entry(font=("",30),justify="right",textvariable=a)
e1.place(x=0,y=0,width=425,height=50)

b1=Button(text="7",font=("",25),bg="gray",fg="white",activebackground="yellow",command=show)
b1.place(x=5,y=55,width=100,height=50)
b1.configure(command=lambda:show("7"))

b2=Button(text="8",font=("",25),bg="gray",fg="white",activebackground="yellow")
b2.place(x=110,y=55,width=100,height=50)
b2.configure(command=lambda:show("8"))

b3=Button(text="9",font=("",25),bg="gray",fg="white",activebackground="yellow")
b3.place(x=215,y=55,width=100,height=50)
b3.configure(command=lambda:show("9"))

b4=Button(text="+",font=("",25),bg="gray",fg="white",activebackground="yellow")
b4.place(x=320,y=55,width=100,height=50)
b4.configure(command=lambda:show("+"))

b5=Button(text="4",font=("",25),bg="gray",fg="white",activebackground="yellow")
b5.place(x=5,y=110,width=100,height=50)
b5.configure(command=lambda:show("4"))

b6=Button(text="5",font=("",25),bg="gray",fg="white",activebackground="yellow")
b6.place(x=110,y=110,width=100,height=50)
b6.configure(command=lambda:show("5"))

b7=Button(text="6",font=("",25),bg="gray",fg="white",activebackground="yellow")
b7.place(x=215,y=110,width=100,height=50)
b7.configure(command=lambda:show("6"))

b8=Button(text="-",font=("",25),bg="gray",fg="white",activebackground="yellow")
b8.place(x=320,y=110,width=100,height=50)
b8.configure(command=lambda:show("-"))

b9=Button(text="1",font=("",25),bg="gray",fg="white",activebackground="yellow")
b9.place(x=5,y=165,width=100,height=50)
b9.configure(command=lambda:show("1"))

b10=Button(text="2",font=("",25),bg="gray",fg="white",activebackground="yellow")
b10.place(x=110,y=165,width=100,height=50)
b10.configure(command=lambda:show("2"))

b11=Button(text="3",font=("",25),bg="gray",fg="white",activebackground="yellow")
b11.place(x=215,y=165,width=100,height=50)
b11.configure(command=lambda:show("3"))

b12=Button(text="*",font=("",25),bg="gray",fg="white",activebackground="yellow")
b12.place(x=320,y=165,width=100,height=50)
b12.configure(command=lambda:show("*"))

b13=Button(text="C",font=("",25),bg="gray",fg="white",activebackground="yellow")
b13.place(x=5,y=220,width=100,height=50)
b13.configure(command=clear)

b14=Button(text="0",font=("",25),bg="gray",fg="white",activebackground="yellow")
b14.place(x=110,y=220,width=100,height=50)
b14.configure(command=lambda:show("0"))

b15=Button(text="=",font=("",25),bg="gray",fg="white",activebackground="yellow",command=equal)
b15.place(x=215,y=220,width=100,height=50)
b15.configure(command=equal)

b16=Button(text="/",font=("",25),bg="gray",fg="white",activebackground="yellow")
b16.place(x=320,y=220,width=100,height=50)
b16.configure(command=lambda:show("/"))

t.mainloop()
[(6, 'tkinter.Tk', 'Tk', False, 'from tkinter import Tk\n'), (13, 'tkinter.StringVar', 'StringVar', False, 'from tkinter import StringVar\n'), (26, 'tkinter.Entry', 'Entry', False, 'from tkinter import Entry\n'), (29, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (33, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (37, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (41, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (45, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (49, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (53, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (57, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (61, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (65, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (69, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (73, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (77, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (81, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (85, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n'), (89, 'tkinter.Button', 'Button', False, 'from tkinter import Button\n')]