I am making a calculator in python 3.1 and i can input the numbers... but i am not sure what to do next... here is my code
<pre><code>from tkinter import*
def one():
    entry.insert(END,'1')
def two():
    entry.insert(END,'2')
def three():
    entry.insert(END,'3')
def four():
    entry.insert(END,'4')
def five():
    entry.insert(END,'5')
def six():
    entry.insert(END,'6')
def seven():
    entry.insert(END,'7')
def eight():
    entry.insert(END,'8')
def nine ():
    entry.insert(END,'9')
def zero():
    entry.insert(END,'0')

win=Tk()
size=3
intro=Label(win,text='calculator')
intro.grid(row=0,columnspan=4)
entry=Entry(win,width=10)
entry.grid(row=1,columnspan=4)
buttonCE=Button(win,text='CE',width=size)
buttonCE.grid(row=1,column=0,)
buttonC=Button(win,text='C',width=size)
buttonC.grid(row=1,column=3)
button1=Button(win,text='1',width=size,command=one)
button1.grid(row=2,column=0)
button2=Button(win,text='2',width=size,command=two)
button2.grid(row=2,column=1)
button3=Button(win,text='3',width=size,command=three)
button3.grid(row=2,column=2)
buttonPlus=Button(win,text='+',width=size)
buttonPlus.grid(row=2,column=3)
button4=Button(win,text='4',width=size,command=four)
button4.grid(row=3,column=0)
button5=Button(win,text='5',width=size,command=five)
button5.grid(row=3,column=1)
button6=Button(win,text='6',width=size,command=six)
button6.grid(row=3,column=2)
buttonMinus=Button(win,text='-',width=size)
buttonMinus.grid(row=3,column=3)
button7=Button(win,text='7',width=size,command=seven)
button7.grid(row=4,column=0)
button8=Button(win,text='8',width=size,command=eight)
button8.grid(row=4,column=1)
button9=Button(win,text='9',width=size,command=nine)
button9.grid(row=4,column=2)
buttonX=Button(win,text='x',width=size)
buttonX.grid(row=4,column=3)
button0=Button(win,text='0',width=size,command=zero)
button0.grid(row=5,column=0)
buttonEquals=Button(win,text='=',width=size)
buttonEquals.grid(row=5,column=1)
buttonSqrt=Button(win,text='sqrt',width=size)
buttonSqrt.grid(row=5,column=2)
buttonDivide=Button(win,text='/',width=size)
buttonDivide.grid(row=5,column=3)
win.mainloop()
</code></pre>
