Import tkinter from tkinter import*
from tkinter import messagebox
def but1_click():
def but2_click():
def but3_click():
def but4_click():
def but5_click():
def but6_click():
def but7_click():
def but8_click():
ent1.delete(0,END)
def but9_click():
def but10_click():
def but11_click():
def but12_click():
def but13_click():
def but14_click():
def but15_click():
def but16_click():
root=Tk()
root.title('calc')
root.geometry('300x400')
root['bg']='#222'
ent1=Entry(root,width=30,font=14)
ent1.place(x=14,y=25)
but1=Button(root,text='1', width=7,height=1,command=but1_click)
but1.place(x=0,y=75)
but2=Button(root,text='4', width=7,height=1,command=but2_click)
but2.place(x=0,y=150)
but3=Button(root,text='7', width=7,height=1,command=but3_click)
but3.place(x=0,y=225)
but4=Button(root,text='0', width=7,height=1,command=but4_click)
but4.place(x=0,y=300)
but5=Button(root,text='2', width=7,height=1,command=but5_click)
but5.place(x=75,y=75)
but6=Button(root,text='5', width=7,height=1,command=but6_click)
but6.place(x=75,y=150)
but7=Button(root,text='8', width=7,height=1,command=but7_click)
but7.place(x=75,y=225)
but8=Button(root,text='C', width=7,height=1,command=but8_click)
but8.place(x=75,y=300)
but9=Button(root,text='3', width=7,height=1,command=but9_click)
but9.place(x=150,y=75)
but10=Button(root,text='6', width=7,height=1,command=but10_click)
but10.place(x=150,y=150)
but11=Button(root,text='9', width=7,height=1,command=but11_click)
but11.place(x=150,y=225)
but12=Button(root,text='=', width=7,height=1,command=but12_click)
but12.place(x=150,y=300)
but13=Button(root,text='/', width=7,height=1,command=but13_click)
but13.place(x=225,y=75)
but14=Button(root,text='*', width=7,height=1,command=but14_click)
but14.place(x=225,y=150)
but15=Button(root,text='-', width=7,height=1,command=but15_click)
but15.place(x=225,y=225)
but16=Button(root,text='+', width=7,height=1,command=but16_click)
but16.place(x=225,y=300)
root.mainloop()
Ладно фывфы