python,tkinter,大神求解

def a( ):
global temp1
equation.set('请输入水平张力:')
temp1 = equation.get( )
def b( ):
global temp2
equation.set('请输入支柱受风力:')
temp2 = equation.get( )
def c( ):
global temp3
equation.set('请输入上绳拉力:')
temp3 = equation.get( )
def d( ):
global temp4
equation.set('请输入下绳拉力:')
temp4 = equation.get( )
def e( ):
global temp5
equation.set('请输入待校验容量:')
temp5 = equation.get( )
def run( ):
if temp5<temp1+temp2+temp3+temp4:
result.set('合格')
else:
result.set('不合格')

        这段程序有什么问题,为什么最后运行只显示合格,求大神解答
不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^