i get to down as far as the tax equation and it won't run, any ideas??
from graphics import *
def main():
win=GraphWin("Taxation Calculator",300,240)
win.setCoords(0.0,0.0,3.0,4.0)
#draw interactive entry boxes
Text(Point(1,3),"Salary: ").draw(win)
input=Entry(Point(2,3),5)
input.setText("0000")
Output=Text(Point(2,1)," ")
Output.draw(win)
Button=Text(Point(1.5,2.0), "Calculate Tax")
Button.draw(win)
Rectangle(Point(1,1.5),Point(2,2.5)).draw(win)
#wait for mouse click
win.getMouse()
#convert Tax
amount= eval(input.getText())
if amount <= 20000:
print "you pay no tax"
elif amount > 20000 <= 40000:
tax = (amount /100.0) * 30.0)
print "you pay this amount in tax",tax
elif amount > 40000 <= 80000:
tax =(amount/100.0) * 40.0)
print "you pay this amount in tax",tax
else amount < 80000:
tax =(amount/100.0) * 50.0)
print "you pay this amount in tax",tax
output.setText("%0.1% tax)
button.setText("Quit")
win.getMouse()
win.close()
main()