global number_1,number_2,number_3
def plus():
try:
number_1 = Element("entry_1").value
number_2 = Element("entry_2").value
number_1 = int(number_1)
number_2 = int(number_2)
number_3= number_1 + number_2
display(number_3, target="output", append=False)
except:
display("数字を入力してください", target="output", append=False)
def minus():
try:
number_1 = Element("entry_1").value
number_2 = Element("entry_2").value
number_1 = int(number_1)
number_2 = int(number_2)
number_3= number_1 - number_2
display(number_3, target="output", append=False)
except:
display("数字を入力してください", target="output", append=False)
def times():
try:
number_1 = Element("entry_1").value
number_2 = Element("entry_2").value
number_1 = int(number_1)
number_2 = int(number_2)
number_3= number_1 * number_2
display(number_3, target="output", append=False)
except:
display("数字を入力してください", target="output", append=False)
def div():
try:
number_1 = Element("entry_1").value
number_2 = Element("entry_2").value
number_1 = int(number_1)
number_2 = int(number_2)
number_3= number_1 / number_2
display(number_3, target="output", append=False)
except:
display("数字を入力してください", target="output", append=False)